PreloadSnapshot class
One PreloadRequest's state at a point in time.
Constructors
- PreloadSnapshot({required int total, required int completed, required int accepted, required bool done, bool cancelled = false, Object? error, StackTrace? stackTrace})
-
const
- PreloadSnapshot.waiting()
-
A load that has not started.
const
Properties
- accepted → int
-
How many assets were accepted by at least one loader.
final
- cancelled → bool
-
Whether the load was cancelled by disposing its request early.
final
- completed → int
-
How many assets have finished.
final
- done → bool
-
Whether the load has finished, successfully or not.
final
- error → Object?
-
What the load failed with, or null while it runs or once it succeeds.
final
- hasError → bool
-
Whether the load failed.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- progress → double
-
How far along the load is, from 0 to 1.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
Where the load failed, or null while it runs or once it succeeds.
final
- succeeded → bool
-
Whether the load finished with every asset it covers.
no setter
- total → int
-
How many assets the load covers. Grows if a manifest is read.
final
Methods
-
copyWith(
{int? total, int? completed, int? accepted, bool? done, bool? cancelled, Object? error, StackTrace? stackTrace}) → PreloadSnapshot -
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.
inherited