Reactable<T> class
The main implementation of the reactable object.
- Inheritance
-
- Object
- Listenable
- ReactableNotifier
- ReactableValueNotifier<
T> - Reactable
- Mixed-in types
Properties
- canBeAutoDisposed → bool
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- read → T
-
Silently read the value of this reactable
without registering a listener.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T
-
The current value of the object. When the value changes, the callbacks
registered with addListener will be invoked.
getter/setter pairinherited
Methods
-
addDisposer(
VoidCallback listener) → void -
inherited
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
inherited
-
call(
[T? v]) → T? -
inherited
-
containsListener(
VoidCallback listener) → bool -
inherited
-
detach(
ScopeData data) → void -
inherited
-
dispose(
) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
inherited
-
refresh(
) → void -
inherited
-
registerScope(
VoidCallback listener) → void -
inherited
-
removeDisposer(
VoidCallback listener) → void -
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
T fn(T? val)) → void -
write(
T val) → T -
Silently write the value of this reactable
without triggering any listener.
inherited
Operators
-
operator ==(
Object o) → bool -
The equality operator.
inherited
Static Methods
-
listenTo(
List< Reactable> reactables, VoidCallback callback) → void - Register this VoidCallBack for all the given reactable. and register the VoidCallBack to be removed when the reactable is no longer is used.