addListener method

  1. @override
void addListener(
  1. VoidCallback listener
)
override

listener will be invoked when the model changes.

Implementation

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