ProgressBar class

A linear progress bar that can be drawn on the console.

Inheritance

Constructors

ProgressBar.atCursor({int? current, required int total, int? width, required ConsoleExecutor console, String? head, ProgressBarTextBuilder? headBuilder, String? tail, ProgressBarTextBuilder? tailBuilder, String? barHead, String? barTail, String? barFillCharacter})
factory
ProgressBar.atPosition({int? current, required int total, int? width, ConsoleExecutor? console, required ConsoleCoordinate position, String? head, ProgressBarTextBuilder? headBuilder, String? tail, ProgressBarTextBuilder? tailBuilder, String? barHead, String? barTail, String? barFillCharacter})
factory

Properties

barFillCharacter String
final
barHead String
final
barTail String
final
current int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headBuilder ProgressBarTextBuilder?
final
isCompleted bool
no setter
isRunning bool
no setter
position ConsoleCoordinate
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tailBuilder ProgressBarTextBuilder?
final
total int
final
width int
final

Methods

draw(ConsoleExecutor console) → void
Draws the component on the console.
override
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