Widget.safeArea constructor Null safety

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

Implementation

const factory Widget.safeArea({
  Key? key,
  @Default(true) bool left,
  @Default(true) bool top,
  @Default(true) bool right,
  @Default(true) bool bottom,
  @Default(EdgeInsets.zero) EdgeInsets minimum,
  @Default(false) bool maintainBottomViewPadding,
  required Widget child,
}) = SafeArea;