DialogHelper class
Helps to display dialogs
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
-
askForConfirmation(
BuildContext context, {required String title, required String query, String? action, bool isDangerousAction = false, String? cancelActionText}) → Future< bool?> -
Asks the user for confirmation with the given
title
andquery
. -
showTextDialog<
T> (BuildContext context, String title, String text, {List< Widget> ? actions, String? okActionText, String? cancelActionText}) → Future<T?> -
Shows a simple text dialog with the given
title
andtext
. -
showWidgetDialog<
T> (BuildContext context, Widget content, {String? title, List< Widget> ? actions, DialogActions defaultActions = DialogActions.ok, String? okActionText, String? cancelActionText}) → Future<T?> -
Shows a dialog with the given
content
.