physicalSize property

  1. @override
Size physicalSize
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.

See also:

Implementation

@override
Size get physicalSize => _physicalSize ?? _view.physicalSize;
void physicalSize=(Size value)

Implementation

set physicalSize(Size value) {
  _physicalSize = value;
  platformDispatcher.onMetricsChanged?.call();
}