CharacterProgressPrinter<N extends num> constructor
CharacterProgressPrinter<N extends num> (
- ProgressFuture<
Object?, N> future, { - String? eventToString(
- ProgressEvent<
N> event
- ProgressEvent<
- bool newline = true,
Prints a character or string for each event. A dot is the default.
Implementation
CharacterProgressPrinter(
this.future, {
this.eventToString,
this.newline = true,
}) {
if (newline) {
future.then((_) => stdout.writeln());
}
future.events.listen(_onEvent);
}