SyncProgressBar class

A live, multi-line progress view for OmnyDrive sync transfers.

Draws one in-place progress bar per concurrent file upload/download — [####----] ↑ path 4.1/6.6 KB — fed by omnydrive ProgressEvents as their bytes stream, plus a trailing [##] 71% 5/7 files overall line. The block is redrawn with ANSI cursor moves, throttled to a few updates a second. Coarse events without per-file data (git push/clone) collapse to a single pushing… line. 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
Clears the live block and resets state so the bar can be reused across successive transfers (e.g. a long-running watch). The caller then prints its own final report where the block was.
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
Folds e into the live state and redraws, throttled; safe to call on every event. Item start/complete milestones bypass the throttle so the view never lags a file appearing or settling.

Operators

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