PlatformDialog class

By calling show, a dialog styled according to each platform will be displayed. This wraps Flutter's showDialog to match the style of each platform.

On iOS, CupertinoAlertDialog is used, and on other platforms, AlertDialog is used.

Constructors

PlatformDialog()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

show<T>({required BuildContext context, required List<PlatformDialogAction<T>> actions, String? title, String? message, Widget? content, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, Offset? anchorPoint, dynamic onClose()?}) Future<T?>
Displays a dialog.