ModelBinder mixin

A mixin that adds the function for models to notify listeners after a property has changed in a model.


hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


bind(String property, PropertyCallBack onPropertyChanged) → void
Attach the callback onPropertyChanged to a given property 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.
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 the onPropertyChanged.
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.


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