SliverSafeArea constructor Null safety

const SliverSafeArea(
  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. required Widget sliver}
)

Creates a sliver that avoids operating system interfaces.

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

Implementation

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