LoaderHelper class
An helper class to manage the loader all throughout the application (show/hide).
Before use, it must be initialised calling
LoaderHelper.shared.init(context);
For further details, check the method documentation itself.
Constructors
- LoaderHelper()
-
factory
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
-
hide(
{bool scheduler = false}) → dynamic - Hide the spinner loader, if shown.
-
init(
BuildContext context, {Widget? loaderWidget, Color? loaderBarrierColor}) → void - Set the root BuildContext to this LoaderHelper singleton to be used in the app.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
{bool scheduler = false}) → dynamic - Show a spinner in a dialog on top of all the app content. The loader is shown only if there are no other active loaders.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
no setter