ValueNotifier<T> class

Holds a value and can add or remove Listeners to it. Use ValueNotifierBuilder to build reactive widgets with this.

Constructors

ValueNotifier(T _value)

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListener bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
getter/setter pair

Methods

addListener(VoidCallback cb) → void
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(VoidCallback cb) → void
toString() String
A string representation of this object.
inherited

Operators

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