A value which is asynchronously initialized on the first access.
Equality: Cells are equal if they have the same evaluated value or are unevaluated.
Hash: Cells hash to their evaluated value or hash the same if unevaluated.
- Implemented types
Constructors
-
LazyCellAsync(Future<
T> func()) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
) → T -
Returns the previously evaluated asynchronous value of the function passed into the constructor. Will panic
if the value has not yet been evaluated. Prefer force for safer context.
inherited
-
force(
) → Future< T> -
Lazily evaluates the function passed into the constructor.
inherited
-
isEvaluated(
) → bool -
Returns true if this has already been called, otherwise false.
inherited
-
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