Spinner class

Constructors

Spinner({String label = '***'})
Spinner.start({String label = '***'})

Properties

hashCode → int
The hash code for this object.
no setterinherited
label ↔ String
getter/setter pair
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
printAndResume(void print(String message), String message) → void
run(Future<void> fn()) → Future<void>
Runs the given function while showing a spinner animation. The spinner is always stopped before this returns — even when fn throws — so the terminal isn't left with a dangling timer that keeps printing.
start() → void
Starts the spinner animation. No-op when stdout is not attached to a terminal — animating into a pipe or log file would just write control characters that pollute captured output.
stop() → void
toString() → String
A string representation of this object.
inherited

Operators

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