viewPadding property
override
The view padding to use for this test.
Defaults to the value provided by FlutterView.viewPadding. 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.viewPadding for the standard implementation
- resetViewPadding to reset this value specifically
- reset to reset all test values for this view
Implementation
@override
FakeViewPadding get viewPadding => _viewPadding ?? FakeViewPadding._wrap(_view.viewPadding);
Implementation
set viewPadding(FakeViewPadding value) {
_viewPadding = value;
platformDispatcher.onMetricsChanged?.call();
}