TransientRef<T> class

A TransientRef is a reference that always return a new instance.

Constructors

TransientRef(T create())

Properties

hashCode → int
The hash code for this object.
no setterinherited
instance → T
Returns a new instance of T.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call() → T
Equivalent to calling the instance getter.
freeze() → void
Disables overriding.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overrideWith(T create()) → void
Sets the function used to create instances. Throws a StateError if this has been frozen.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited