dispose method

Future<void> dispose()

Implementation

Future<void> dispose() async {
  await _sourceSubscription?.cancel();
  _sourceSubscription = null;
  await _controller.close();
}