refreshRate property
override
The refresh rate 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
double get refreshRate => _refreshRate ?? _display.refreshRate;
Implementation
set refreshRate(double value) {
_refreshRate = value;
_platformDispatcher.onMetricsChanged?.call();
}