CustomActivityBar class

An activity indicator with customizable frames and success and failure messages.

Inheritance

Constructors

CustomActivityBar.new({String? title, String success = '✓', String failure = '✗', required List<ConsoleText> frames})

Properties

failure String
finalinherited
frames List<ConsoleText>
The text that will be output on the indicator ticks, each frame corresponding to a single tick in a range of 0...(frames.count - 1).
final
hashCode int
The hash code for this object.
no setterinherited
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.
override
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

Static Properties

defaultFrames List<ConsoleText>
The default frames used by the CustomActivityBar.
final