notify method

void notify(
  1. T value1,
  2. V value2
)

Implementation

void notify(T value1, V value2) {
  _value1 = value1;
  _value2 = value2;
  for (var listener in _listeners) {
    listener.call();
  }
}