viewInsets property

  1. @override
FakeViewPadding viewInsets
override

The view insets to use for this test.

Defaults to the value provided by FlutterView.viewInsets. 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
FakeViewPadding get viewInsets => _viewInsets ?? FakeViewPadding._wrap(_view.viewInsets);
void viewInsets=(FakeViewPadding value)

Implementation

set viewInsets(FakeViewPadding value) {
  _viewInsets = value;
  platformDispatcher.onMetricsChanged?.call();
}