physicalSize property
override
The physical size to use for this test.
Defaults to the value provided by FlutterView.physicalSize. This can only be set in a test environment to emulate different view configurations. A standard FlutterView is not mutable from the framework.
See also:
- FlutterView.physicalSize for the standard implementation
- resetPhysicalSize to reset this value specifically
- reset to reset all test values for this view
Implementation
@override
Size get physicalSize => _physicalSize ?? _view.physicalSize;
Implementation
set physicalSize(Size value) {
_physicalSize = value;
platformDispatcher.onMetricsChanged?.call();
}