Spinner class
A spinner or a loading indicator component.
Constructors
- Spinner({required String icon, String leftPrompt(bool) = _prompt, String rightPrompt(bool) = _prompt})
- Construts a Spinner component with the default theme.
- Spinner.withTheme({required String icon, required Theme theme, String leftPrompt(bool) = _prompt, String rightPrompt(bool) = _prompt})
- Constructs a Spinner component with the supplied theme.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → String
-
The icon to be shown in place of the loading
indicator after it's done.
final
- leftPrompt → String Function(bool)
-
The prompt function to be shown on the left side
of the spinning indicator or icon.
final
- rightPrompt → String Function(bool)
-
The prompt function to be shown on the right side
of the spinning indicator or icon.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → Theme
-
The theme of the component.
final
Methods
-
createState(
) → _SpinnerState -
Creates a
State
for current component, inspired by Flutter'sStatefulWidget
. -
disposeState(
State< Component> state) → void -
Disposes current state, to make the
Context
null and unusable after the rendering is completely finished. -
interact(
) → SpinnerState -
Starts the rendering processs.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pipeState(
State< Component> state) → State<Component> -
Pipes the state after running
createState
in case of needing to handle the state from outside. -
setContext(
Context c) → void - Sets the context to a new one, to be used internally by MultiSpinner.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited