UiDialogScope class

Imperative helpers for showing a UiDialog.

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

confirm(BuildContext context, {required String title, String? description, String confirmLabel = 'Confirm', String cancelLabel = 'Cancel', UiIntent confirmIntent = UiIntent.primary}) Future<bool?>
Two-button confirmation prompt.
show<T>(BuildContext context, {required WidgetBuilder builder, bool barrierDismissible = true, bool useRootNavigator = true}) Future<T?>
Shows builder inside a dismissible overlay. Resolves with whatever is passed to Navigator.maybePop from within the dialog, or null if the scrim was tapped.