withSafety static method
Implementation
static Widget withSafety(BuildContext context, Widget widget) {
SafeBar? s = context.pylonOr<SafeBar>();
if (s != null) {
return SafeArea(
top: s.top,
bottom: s.bottom,
left: s.left,
right: s.right,
child: widget,
);
}
return widget;
}