TaskProgressIndicator class

A model class representing a task progress indicator.

This class provides a way to track progress of tasks with customizable appearance and validation.

Constructors

TaskProgressIndicator.new({required int completed, required int total, Color color = Colors.blue, Color backgroundColor = const Color(0xFFE0E0E0)})
Creates a new TaskProgressIndicator instance.

Properties

backgroundColor Color
The background color of the progress indicator
final
color Color
The color of the progress indicator
final
completed int
The number of completed tasks
final
hashCode int
The hash code for this object.
no setterinherited
percentage double
Returns the progress percentage as a double between 0 and 1
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Returns the progress as a text string in the format "completed/total"
no setter
total int
The total number of tasks
final

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