SafeArea constructor Null safety

const SafeArea(
  1. {Key? key,
  2. bool left = true,
  3. bool top = true,
  4. bool right = true,
  5. bool bottom = true,
  6. EdgeInsets minimum = EdgeInsets.zero,
  7. bool maintainBottomViewPadding = false,
  8. required Widget child}
)

Creates a widget that avoids operating system interfaces.

The left, top, right, bottom, and minimum arguments must not be null.

Implementation

const SafeArea({
  super.key,
  this.left = true,
  this.top = true,
  this.right = true,
  this.bottom = true,
  this.minimum = EdgeInsets.zero,
  this.maintainBottomViewPadding = false,
  required this.child,
}) : assert(left != null),
     assert(top != null),
     assert(right != null),
     assert(bottom != null);