LoaderManager class final
Helper class for showing loader dialog
NavigatorState key is required either of Root or Nested Navigator's
Override loaderBuilder if you want to use custom Widget
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- loaderBuilder ↔ WidgetCallbackViaContext
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
hide(
{Object? id}) → void -
If
id
is provided closes loader with givenid
If not closes latest shown loader -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
{Object? id, bool barrierDismissible = false}) → void -
Shows loader dialog
Provide
id
id if you have multiple loaders and want to close a specific one -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited