Lazy<T> class

Lazily creates T when needed.

Implementers

Constructors

Lazy(InitFunction<T> function)
during the initialization, the function specified here gets used and creates the value.

Properties

hashCode int
The hash code for this object.
no setteroverride
isValueCreated bool
Returns true if the value has been created and cached.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
the lazily initialized value.
no setter

Methods

call() → T
Returns the lazily initialized value.
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 ==(dynamic other) bool
The equality operator.
override