SyncProgressBar class

A single-line, carriage-return progress bar for OmnyDrive sync transfers.

Renders [######----] 71% 5/7 files path in place from omnydrive ProgressEvents as each file is uploaded/downloaded, throttled to a few updates a second. Coarse events without a file count (git push/clone) show their phase message instead (e.g. pushing…). A no-op when stdout is not a terminal (or NO_COLOR is set), so piped/redirected output stays clean.

Constructors

SyncProgressBar({StringSink? out, bool? enabled, int width = 24})
Creates a sync progress bar writing to out (defaults to stdout).

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

finish() → void
Finishes the current bar line with a trailing newline (no-op when disabled or nothing was drawn since the last finish). Resets state so the bar can be reused across successive transfers, e.g. a long-running watch.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(ProgressEvent e) → void
Renders e, throttled; safe to call on every event. The terminal done phase is left for finish to terminate, preserving the last drawn line.

Operators

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