ModelBinder mixin
A mixin that adds the function for models to notify listeners after a property has changed in a model.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bind(
String property, PropertyCallBack onPropertyChanged) → void -
Attach the callback
onPropertyChanged
to a givenproperty
of the model. -
commit(
) → void - Notify all listeners about the last properties changes and enable the notifier functionaly again.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
String property, Object? newValue) → void -
Notifies listeners that have attached to the
property
that it has changed. This function is usually called by the model itself. -
removeAllBinds(
) → void - Remove all binds attached to this model.
-
removeBind(
String property, PropertyCallBack onPropertyChanged) → void -
Remove the bind attached to the
property
and theonPropertyChanged
. -
startTransaction(
) → void - Starts a transaction that disables notification of property changes until commit is called. Multiple property changes can be made within a transaction, but listeners will not be notified until it is committed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited