physicalConstraints property

  1. @override
ViewConstraints 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;
void physicalConstraints=(ViewConstraints value)

Implementation

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