showCustomDialog<T> static method

Future<T?> showCustomDialog<T>(
  1. BuildContext context,
  2. Widget dialogView, {
  3. bool dismisable = false,
  4. double maxWidth = 400,
})

Implementation

static Future<T?> showCustomDialog<T>(BuildContext context, Widget dialogView, {bool dismisable = false, double maxWidth = 400}) {
  return showDialog<T>(
      context: context,
      builder: (_) => DialogWrapper(
            maxWidth: maxWidth,
            dismisable: dismisable,
            child: dialogView,
          ),
      barrierDismissible: false);
}