DialogServices class
A service class that handles displaying dialogs without requiring BuildContext
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
-
hideDialog(
) → void - Dismisses any open dialogs
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showCustomDialog<
T> ({required Widget dialog, bool barrierDismissible = true}) → Future< T?> - Shows a dialog using the stored navigator key
-
showNoInternetDialog(
) → Future< void> - Shows a no internet connection dialog
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → DialogServices
-
Gets the singleton instance of DialogUtils
no setter
Static Methods
-
initialize(
FlutterDinoConfig config) → void - Initializes the DialogUtils with a navigator key