notify method Null safety

  1. @protected
  2. @mustCallSuper
void notify(
  1. T val
)
@mustCallSuper@protected

Implementation

@protected
@mustCallSuper
void notify(T val) {
  if (onChanged != null) onChanged!(val);
  final tmp = _completer;
  _completer = Completer<T>();
  tmp.complete(val);
}