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