Subject<T> constructor

Subject<T>(
  1. StreamController<T> controller,
  2. Stream<T> stream
)

Constructs a Subject which wraps the provided controller. This constructor is applicable only for classes that extend Subject.

Implementation

Subject(StreamController<T> controller, Stream<T> stream)
    : _controller = controller,
      super(stream);