Ref<T> class

A reference to a value.

The reference will persist until the component is removed from the node hierarchy.

Changing the value of the reference does not force a rerender of the component. But it is possible to add a listener to the stream of change events.

If the initial value of the reference is not null, then this value will be added to the stream of change events.

Properties

hashCode int
The hash code for this object.
no setterinherited
onChange Stream<T>
Returns a stream of events of changes to the value of the reference.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
getter/setter pair

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