show static method

dynamic show(
  1. BuildContext context, {
  2. required Widget widget,
  3. Color? barrierColor = const Color(0x44000000),
  4. bool useSafeArea = true,
  5. RouteSettings routeSettings = const RouteSettings(name: "showDialog"),
})

Implementation

static show(
  BuildContext context, {
  required Widget widget,
  Color? barrierColor = const Color(0x44000000),
  bool useSafeArea = true,
  RouteSettings routeSettings = const RouteSettings(name: "showDialog"),
}) {
  showDialog(
      context: context,
      barrierColor: barrierColor,
      useSafeArea: useSafeArea,
      useRootNavigator: true,
      routeSettings: routeSettings,
      builder: (BuildContext context) {
        return widget;
      });
}