ReactiveModel class
Base ReactiveModel
- Implementers
- Available extensions
Constructors
Properties
- debugNotify ↔ bool
-
Debug flag for development
getter/setter pair
-
fieldListeners
→ Map<
Symbol, List< VoidCallback> > -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
nestedModels
→ List<
ReactiveModel> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener, {Symbol? field}) → void -
addNested(
ReactiveModel nested, {Symbol? field}) → void -
addRelation(
ReactiveModel child, {Symbol? field}) → void - Many → One
-
batch(
VoidCallback fn) → void -
dispose(
) → void -
listen(
{List< Symbol> ? fields, required void callback(ReactiveModel)}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
[Symbol? field]) → void -
once(
VoidCallback callback, {Symbol? field}) → void -
reaction<
V> (V selector(), void callback(V value), {List< Symbol> ? fields}) → void -
removeListener(
VoidCallback listener, {Symbol? field}) → void -
removeNested(
ReactiveModel nested) → void -
removeRelation(
ReactiveModel child) → void - Many ↔ Many helper
-
toString(
) → String -
A string representation of this object.
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited