notify method

void notify()

Implementation

void notify() {
  for (var listener in _listeners) {
    listener.call();
  }
}