viewPadding property

  1. @override
FakeViewPadding viewPadding
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:

Implementation

@override
FakeViewPadding get viewPadding => _viewPadding ?? FakeViewPadding._wrap(_view.viewPadding);
void viewPadding=(FakeViewPadding value)

Implementation

set viewPadding(FakeViewPadding value) {
  _viewPadding = value;
  platformDispatcher.onMetricsChanged?.call();
}