ProgressTracker class

Inheritance

Constructors

ProgressTracker(num total, [String? name])
Creates
ProgressTracker.ratio([String? name])
Instead of counting towards an arbitrary count, we'll base the counter on a percent and the caller will make sure to send the appropriate ratios

Properties

context → ReactiveContext
Override this method to use a custom context.
no setterinherited
count double
no setterinherited
done Future
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Delegates the creation of a key to the wrapped SingleValue. This is optional
no setterinherited
log → Logger
finalinherited
percent double
Returns a percent completed, between 0 and 100
no setterinherited
percentText String
Returns the completed percent in textual form, with a % sign
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
task String?
Stores what's currently being worked on
getter/setter pairinherited
total double
The total number of units working towards. For percent/ratio based tracking, this will be 100
no setterinherited

Methods

complete() → void
Marks this counter as complete
inherited
decrement() → void
inherited
finishTask(double progress, {String? newTask}) → void
inherited
finishTaskRatio(double progress, {String? newTask}) → void
inherited
increment([double? amount]) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
predict(double amount, {Duration? step}) Future
Increments the value by a certain amount over a duration using an exponential backoff. Helps prevent large pauses while operations are / warming up.
inherited
reset() → void
inherited
set(double value) → void
inherited
toString() String
A string representation of this object.
inherited
update(double amount) → void
inherited
updateRatio(double ratio) → void
inherited
updateTask(String newTask) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited