addCallback method

  1. @override
void addCallback(
  1. ViewModelInstanceObservableValue instance
)

This method is used internally to add a property instance to the list of properties that have listeners attached to them.

This method should not be called directly, but rather through the addListener method of the ViewModelInstanceObservableValue.

Implementation

@override
void addCallback(ViewModelInstanceObservableValue instance) {
  _propertiesWithCallbacks.add(instance);
}