closeStream method

Future<void> closeStream()

Closes the stream so it cannot be listened to.

Calling init after this is an error.

Implementation

Future<void> closeStream() async {
  await _controller.close();
}