ProgressTracker<T> class

Inheritance

Constructors

ProgressTracker(FutureOr<num> total, Object key)
Creates
ProgressTracker.ratio([Object? key])
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

hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
isDisposed → bool
no setter
isInProgress → bool
no setter
key → Object?
final
percent → double
Returns a percent completed, between 0 and 100
no setter
percentText → String
Returns the completed percent in textual form, with a % sign
no setter
progress → double
no setter
result → Future<T>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
task → String?
no setter
total → double?
The total number of units working towards. For percent/ratio based tracking, this will be 100
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
complete([T? result]) → void
Marks this counter as complete
completeError([Object? error, StackTrace? stack]) → void
Marks this counter as complete
decrement() → void
dispose() → void
Discards any resources used by the object.
override
finishTask(double progress, {String? newTask}) → void
finishTaskRatio(double progress, {String? newTask}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
reset() → void
toString() → String
A string representation of this object.
inherited
update(double progress, {String? newTask, double? total}) → void
updateRatio(double ratio, {String? newTask}) → void
updateTask(String newTask) → void
updateTotal(double total) → void

Operators

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