safe method

Widget safe({
  1. required Widget child,
})

Implementation

Widget safe({
  required Widget child,
}) {
  if (safeArea)
    return SafeArea(
      child: child,
    );

  return child;
}