LoadingState class final
Immutable snapshot of the operations currently owned by a loading scope.
- Annotations
Properties
- activeCount → int
-
Total number of active executions, including repeated ids tracked in
parallel.
final
-
activeOperations
→ Set<
Object> -
Stable operation identifiers currently marked as active.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
Whether at least one operation is active.
no setter
-
operationCounts
→ Map<
Object, int> -
Number of active executions grouped by stable operation identifier.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
countFor(
Object id) → int -
Number of active executions currently grouped under
id. -
isActive(
Object id) → bool -
Whether
idis currently active. -
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
Constants
- idle → const LoadingState
- Empty loading state.