ConstNonNullableLazyCell<T extends Object> class

A value which is initialized on the first access. Const Non-nullable implementation of LazyCell.

Equality: Cells are equal if they have the same evaluated value or are unevaluated. unevaluated.

Hash: Cells hash to their evaluated value or hash the same if unevaluated.

Implemented types

Constructors

ConstNonNullableLazyCell(T _func(), Object id)
const

Properties

hashCode int
The hash code for this object.
no setteroverride
id Object
Const objects all share the same canonicalization, meaning instantiation of the same class with the same arguments will be the same instance. Therefore, if you need multiple const versions, an id is needed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call() → T
Lazily evaluates the function passed into the constructor.
override
isEvaluated() bool
Returns true if this has already been called, otherwise false.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override