emit method Null safety

void emit(
  1. T newValue
)

Implementation

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