ProgressState class
Handles a progress bar's state.
Constructors
- ProgressState({required int current, required void clear(), required void increase(int), required void Function() done()})
- Constructs a ProgressState with it's all properties.
Properties
- clear ↔ void Function()
-
Clears the current by setting it to
0
.getter/setter pair - current ↔ int
-
Current progress.
getter/setter pair
- done ↔ void Function() Function()
-
To be run to indicate that the progress is done,
and the rendering can be wiped from the terminal.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- increase ↔ void Function(int)
-
Increases the current by the given value.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited