stream property Null safety

Stream<T> stream

A broadcast stream representation of a StateNotifier.

Implementation

Stream<T> get stream {
  _controller ??= StreamController<T>.broadcast();
  return _controller!.stream;
}