ProgressLoader class
Can be used to show a widget in an overlay to indicate loading.
Singleton instance managing it's own state, calling show and dismiss will affect the overlay no matter where it is called from.
Only one overlay can be shown at any time (calling show twice without calling dismiss will not cause 2 overlays to show).
Constructors
- ProgressLoader()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
This will be true if the ProgressLoader is currently on screen, or is scheduled to show on the next frame.
It will stay true until ProgressLoader is fully dismissed, which could be long after ProgressLoader.dismiss is
called if ProgressLoader is waiting for the future in ProgressLoaderWidgetController to complete.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- widgetBuilder ↔ ProgressLoaderWidgetBuilder
-
Set widgetBuilder to use your own custom widget when the ProgressLoader is showing.
getter/setter pair
Methods
-
dismiss(
) → Future< void> - Call this from anywhere to have the ProgressLoader dismiss. Calling this when the ProgressLoader is not showing or already dismissing will not do anything.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
BuildContext context) → Future< void> - Call this from anywhere to have the ProgressLoader show.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited