ReactiveMap<K, V> class

Inheritance
Available extensions

Constructors

ReactiveMap([Map<K, V>? initial])

Properties

debugNotify bool
Debug flag for development
getter/setter pairinherited
fieldListeners Map<Symbol, List<VoidCallback>>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
nestedModels List<ReactiveModel>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Map<K, V>
no setter

Methods

addListener(VoidCallback listener, {Symbol? field}) → void
inherited
addNested(ReactiveModel nested, {Symbol? field}) → void
inherited
addRelation(ReactiveModel child, {Symbol? field}) → void
Many → One
inherited
batch(VoidCallback fn) → void
inherited
clear() → void
dispose() → void
inherited
listen({List<Symbol>? fields, required void callback(ReactiveModel)}) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners([Symbol? field]) → void
inherited
once(VoidCallback callback, {Symbol? field}) → void
inherited
put(K key, V value) → void
reaction<V>(V selector(), void callback(V value), {List<Symbol>? fields}) → void
inherited
remove(K key) → void
removeListener(VoidCallback listener, {Symbol? field}) → void
inherited
removeNested(ReactiveModel nested) → void
inherited
removeRelation(ReactiveModel child) → void
inherited
shareRelation(ReactiveModel other, {Symbol? field}) → void
Many ↔ Many helper
inherited
toString() String
A string representation of this object.
inherited
unshareRelation(ReactiveModel other) → void
inherited
watch(Widget builder(T model), {List<Symbol>? fields}) Widget

Available on T, provided by the ReactiveWatch extension

Watch the entire model (object-wise) or specific fields
watchComputed<R>(R compute(), Widget builder(R value)) Widget

Available on T, provided by the ReactiveWatch extension

Watch a computed value derived from this model
watchComputed<T>(T compute(), Widget builder(T value)) Widget

Available on ReactiveModel, provided by the ReactiveWatchHelpers extension

Watch a computed value
watchField(Symbol field, Widget builder()) Widget

Available on T, provided by the ReactiveWatch extension

Watch a specific field on this model
watchField(Symbol field, Widget builder()) Widget

Available on ReactiveModel, provided by the ReactiveWatchHelpers extension

Watch a specific field
when(bool condition(), VoidCallback callback, {List<Symbol>? fields}) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](K key) → V?