dispose method

Future<void> dispose()

Disposes of the stream controller to avoid memory leaks.

Implementation

Future<void> dispose() async {
  await _streamController.close();
}