size property

  1. @override
Size get size
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:

Implementation

@override
Size get size => _size ?? _display.size;
set size (Size value)

Implementation

set size(Size value) {
  _size = value;
  _platformDispatcher.onMetricsChanged?.call();
}