dispose method

Future<Unit> dispose()

Closes the stream.

Implementation

Future<Unit> dispose() async {
  await _streamController?.close();
  return const Unit();
}