show static method

void show({
  1. required BuildContext context,
  2. Widget? child,
  3. Color? backgroundColor,
  4. ShapeBorder? shape,
})

Implementation

static void show({
  required BuildContext context,
  Widget? child,
  Color? backgroundColor,
  ShapeBorder? shape,
}) {
  final dialog = Dialog(
    backgroundColor: backgroundColor,
    child: child,
    shape: shape,
  );
  showDialog(context: context, builder: (BuildContext context) => dialog);
}