Reference<T> class abstract

Implementers
Available Extensions

Constructors

Reference()

Properties

exists bool
Whether the value that this reference points to exists.
no setter
hashCode int
The hash code for this object.
no setterinherited
numberOfChildren int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
The value this reference points to.
getter/setter pair
valueOrNull → T?
no setter

Methods

child<R>(Object? key, {bool createImplicitly = false}) Reference<R>
mutate(void mutater(T value)) → void
Updates the value by calling the mutating function and then saving the value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove() → void
toString() String
A string representation of this object.
inherited
update(T updater(T value)) → void
Updates the value reference with the given function.
valueOr(T orElse()) → T
watch() Stream<void>
A Stream that fires evertime the value that this reference points to changes.

Operators

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