safeArea method

SafeArea 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,
})

Wrap a widget in SafeArea.

Implementation

SafeArea safeArea({
  Key? key,
  bool left = true,
  bool top = true,
  bool right = true,
  bool bottom = true,
  EdgeInsets minimum = EdgeInsets.zero,
  bool maintainBottomViewPadding = false,
}) {
  return SafeArea(
    key: key,
    left: left,
    top: top,
    right: right,
    bottom: bottom,
    minimum: minimum,
    maintainBottomViewPadding: maintainBottomViewPadding,
    child: this,
  );
}