CappProgressReporter class

CappProgressReporter is passed to the action of CappConsole.progressPercent so it can report its own progress while it runs, updating the percentage and/or the message shown to the user.

Constructors

CappProgressReporter(String _message)

Properties

hashCode → int
The hash code for this object.
no setterinherited
message → String
The message currently shown above the progress bar.
no setter
percent → double
The current percentage of completion, between 0 and 100.
no setter
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
update({double? percent, String? message}) → void
Updates the percent (clamped between 0 and 100) and/or the message shown above the progress bar. Call this from inside the action as many times as needed to reflect the real progress (e.g. bytes downloaded).

Operators

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