addListener method

  1. @override
void addListener (VoidCallback listener)
override

listener will be invoked when the model changes.

Implementation

@override
void addListener(VoidCallback listener) {
  _listeners.add(listener);
}