FfiDownloadStatus class
Download progress, bytes and state in one consistent read, so a polling UI
cannot observe a torn pair (for example Ready with a stale 0.34
progress).
progress is aggregated across every artifact the model needs (weights
plus companions such as a vision projector), never moves backwards, and
reaches 1.0 only alongside Ready. totalBytes is null when the source
declares no size, in which case downloadedBytes is still exact.
Constructors
- FfiDownloadStatus({required FfiDownloadState state, required double progress, required BigInt downloadedBytes, BigInt? totalBytes})
-
const
Properties
- downloadedBytes → BigInt
-
Bytes written so far, across every artifact.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- progress → double
-
0.0 to 1.0.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → FfiDownloadState
-
final
- totalBytes → BigInt?
-
Declared total across every artifact, or null when unknown.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override