Progress class
A progress bar component.
Constructors
- Progress({required int length, double size = 1.0, String leftPrompt(int) = _prompt, String rightPrompt(int) = _prompt})
- Constructs a Progress component with the default theme.
- Progress.withTheme({required Theme theme, required int length, double size = 1.0, String leftPrompt(int) = _prompt, String rightPrompt(int) = _prompt})
- Constructs a Progress component with the supplied theme.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- leftPrompt → String Function(int)
-
The prompt function to be shown on the left side
of the progress bar.
final
- length → int
-
The length of the progress bar.
final
- rightPrompt → String Function(int)
-
The prompt function to be shown on the right side
of the progress bar.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
The size multiplier to be used when rendering
the progress bar.
final
- theme → Theme
-
The theme of the component.
final
Methods
-
createState(
) → _ProgressState -
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(
) → ProgressState -
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 MultiProgress.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited