emit method

void emit(
  1. T newValue
)

Implementation

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