viewInsets property
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:
- FakeViewPadding which is used to set this value for testing
- FlutterView.viewInsets for the standard implementation
- resetViewInsets to reset this value specifically
- reset to reset all test values for this view
Implementation
@override
FakeViewPadding get viewInsets => _viewInsets ?? FakeViewPadding._wrap(_view.viewInsets);
Implementation
set viewInsets(FakeViewPadding value) {
_viewInsets = value;
platformDispatcher.onMetricsChanged?.call();
}