notify method

dynamic notify()

Implementation

notify() {
  _listeners.forEach((fn) => fn());
}