stream<TState> method

StreamController<TState> stream<TState>()

Instantiates an auto-disposing StreamController.

Disposal is taken care of in the dispose method.

Implementation

StreamController<TState> stream<TState>() {
  final subject = StreamController<TState>();
  _streamControllers.add(subject);
  return subject;
}