refreshRate property

  1. @override
double refreshRate
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:

Implementation

@override
double get refreshRate => _refreshRate ?? _display.refreshRate;
void refreshRate=(double value)

Implementation

set refreshRate(double value) {
  _refreshRate = value;
  _platformDispatcher.onMetricsChanged?.call();
}