MultiProgressModel class
A model for managing multiple progress bars simultaneously.
- Inheritance
-
- Object
- Model
- ViewComponent
- MultiProgressModel
Constructors
-
MultiProgressModel({Map<
String, ProgressModel> ? bars, int width = _defaultWidth}) - Creates a new multi-progress model.
Properties
-
bars
→ Map<
String, ProgressModel> -
The map of progress bars, keyed by a unique identifier.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int
-
Default width for new progress bars.
final
Methods
-
add(
String key, {ProgressModel? model}) → MultiProgressModel - Adds a new progress bar with the given key.
-
init(
) → Cmd? -
Returns an optional command to execute on program startup.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String key) → MultiProgressModel - Removes the progress bar with the given key.
-
setPercent(
String key, double p, {bool animate = true}) → (MultiProgressModel, Cmd?) - Updates the percentage for a specific bar.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Msg msg) → (MultiProgressModel, Cmd?) -
Updates the component state in response to a message.
override
-
view(
) → String -
Renders the current model state for display.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited