size property
override
The size of the Display to use for this test.
Defaults to the value provided by Display.refreshRate. This can only be set in a test environment to emulate different display configurations. A standard Display is not mutable from the framework.
See also:
- Display.refreshRate for the standard implementation
- resetRefreshRate to reset this value specifically
- reset to reset all test values for this display
Implementation
@override
Size get size => _size ?? _display.size;
Implementation
set size(Size value) {
_size = value;
_platformDispatcher.onMetricsChanged?.call();
}