PreloadOperation class
Represents a preloading operation.
Constructors
- PreloadOperation.new({required String key, PreloadStatus status = PreloadStatus.notStarted})
- Creates a new instance of PreloadOperation.
Properties
- duration → Duration
-
Gets the duration of the operation.
no setter
- endTime ↔ DateTime?
-
The time when the preloading operation completed, if any.
getter/setter pair
- error ↔ Object?
-
The error that occurred during preloading, if any.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
The key of the item being preloaded.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DateTime
-
The time when the preloading operation started.
final
- status ↔ PreloadStatus
-
The status of the preloading operation.
getter/setter pair
Methods
-
markCancelled(
) → void - Marks the operation as cancelled.
-
markCompleted(
) → void - Marks the operation as completed.
-
markFailed(
Object error) → void - Marks the operation as failed.
-
markInProgress(
) → void - Marks the operation as in progress.
-
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