showPlatformDialog<T> function

Future<T> showPlatformDialog <T>(
  1. {@required BuildContext context,
  2. @required WidgetBuilder builder,
  3. dynamic androidBarrierDismissible: false}
)

Implementation

Future<T> showPlatformDialog<T>({
  @required BuildContext context,
  @required WidgetBuilder builder,
  androidBarrierDismissible = false,
}) {
  if (isMaterial(context)) {
    return showDialog<T>(
        context: context,
        builder: builder,
        barrierDismissible: androidBarrierDismissible);
  } else {
    return showCupertinoDialog<T>(
      context: context,
      builder: builder,
    );
  }
}