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
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< actions, String? title, String? message, Widget? content, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, RouteSettings? routeSettings, Offset? anchorPoint, dynamic onClose()?}) → Future<T> >T?> - Displays a dialog.