ShallowRef<T> class

A shallow reactive reference.

Only the .value access is reactive. Nested properties are not tracked.

Constructors

ShallowRef(T _value)
Creates a new shallow ref with the given initial value.

Properties

hashCode int
The hash code for this object.
no setterinherited
raw → T
The raw value without triggering reactivity.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
The reactive value.
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.
override
trigger() → void
Force trigger all dependents.

Operators

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