close method

void close()

Closes the stream subscription and the stream controller.

Implementation

void close() {
  _streamSubscription.cancel();
  _controller.close();
}