FunctionTypeObject<T> class
Lazy-evaluated version of TypeObject that executes a function to get the value. Useful for deferred initialization or expensive object creation.
- Implemented types
-
- TypeObject<
T>
- TypeObject<
Constructors
-
FunctionTypeObject.new(FunctionType<
T> functionType) -
Creates a FunctionTypeObject with a function that provides the value
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- obj → T
-
Executes the function and returns the result
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
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