ProgressBar class

Progress-style implementation of ActivityBar.

Downloading [========                ]

The progress bar is updated by calling progress = 0.5 to set the progress to 50%.

Inheritance

Constructors

ProgressBar.new({String? title, String success = '✓', String failure = '✗'})

Properties

failure String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
progress double
Returns or sets the progress of the progress bar.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success String
finalinherited
title String?
Returns or sets the title of the activity bar.
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Console console, ActivityIndicatorState state) → void
Render the activity indicator.
inherited
renderActiveBar(int tick, int width) ConsoleText
Called each time the ActivityBar should refresh its display.
override
toString() String
A string representation of this object.
inherited

Operators

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