showBaseAlertDialog<T> function

Future<T> showBaseAlertDialog<T>(
  1. BaseAlertDialog alertDialog,
  2. BuildContext context,
  3. {bool barrierDismissible = true,
  4. bool useRootNavigator = true}
)

showDialog

Implementation

Future<T> showBaseAlertDialog<T>(
  BaseAlertDialog alertDialog,
  BuildContext context, {
  bool barrierDismissible = true,
  bool useRootNavigator = true,
}) {
  // if (useCupertino) {
  //   return showCupertinoDialog<T>(
  //     context: context,
  //     builder: (BuildContext context) => alertDialog,
  //     useRootNavigator: useRootNavigator,
  //   );
  // }
  return showDialog<T>(
    context: context,
    barrierDismissible: barrierDismissible,
    builder: (BuildContext context) => alertDialog,
    useRootNavigator: useRootNavigator,
  );
}