MutableComputedState<T> class
final
- Implemented types
- Mixed in types
Constructors
-
MutableComputedState({required Future<
T> refresh(), required ComputedStateValue<T> getValue(), required void clear(), required void updateValue(T value)}) -
const
Properties
- clear → void Function()
-
Resets value to ComputedStateValue.notInitialized
Cancels the computation if value is ComputedStateValue.inProgress
final
-
getValue
→ ComputedStateValue<
T> Function() -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
no setterinherited
-
refresh
→ Future<
T> Function() -
If value is ComputedStateValue.inProgress, waits for computation to complete.
Otherwise, starts a new computation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updateValue → void Function(T value)
-
Explicitly sets value to ComputedStateValue.ready with given
value
. Cancels the computation if value is ComputedStateValue.inProgressfinal -
value
→ ComputedStateValue<
T> -
no setteroverride
- valueOrNull → T?
-
no setterinherited
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.
inherited