LiquidGlassAlert class
Presents a native iOS alert (UIAlertController) with Liquid Glass chrome,
or a Material AlertDialog on other platforms.
This is a static presenter, not a widget — call show from an event handler and await the id of the button the user tapped.
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(
{required BuildContext context, required String title, String message = '', List< AlertButton> buttons = const []}) → Future<String?> -
Shows a native alert via the Presenter on iOS, or a Material showDialog
on other platforms. Returns the id of the tapped button, or
nullif the alert was dismissed without a selection.