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.
Setting this value also sets physicalConstraints to tight constraints based on the given size.
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;
// For backwards compatibility the constraints are set based on the provided size.
physicalConstraints = ViewConstraints.tight(value);
}