emit method

void emit(
  1. T newValue
)

Notifies listeners with newValue, unconditionally.

Implementation

void emit(T newValue) {
  _eventArgs = newValue;
  notifyListeners();
}