physicalConstraints property

  1. @override
ViewConstraints get physicalConstraints
override

The physical constraints to use for this test.

Defaults to the value provided by FlutterView.physicalConstraints. 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
ViewConstraints get physicalConstraints => _physicalConstraints ?? _view.physicalConstraints;
set physicalConstraints (ViewConstraints value)

Implementation

set physicalConstraints(ViewConstraints value) {
  _physicalConstraints = value;
  platformDispatcher.onMetricsChanged?.call();
}