LiquidGlassPresenter class
Low-level bridge to the native presenter that drives sheets, alerts, and popovers over a single method channel.
Prefer the high-level helpers (LiquidGlassSheet, LiquidGlassAlert, LiquidGlassPopover); call these methods directly only when you need to present without a BuildContext. All methods are no-ops off iOS.
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
-
presentAlert(
{required String title, String message = '', List< AlertButton> buttons = const []}) → Future<String?> -
Presents a native alert with
title,message, andbuttons. Returns the id of the button that was tapped, ornullif dismissed. -
presentPopover(
{String title = ''}) → Future< void> -
Presents a native popover with the given
title. -
presentSheet(
{String title = ''}) → Future< void> -
Presents a native sheet with the given
title.