dispose method

Future<void> dispose()

Implementation

Future<void> dispose() async {
  if (_subscription != null) {
    await _subscription!.cancel();
    _subscription = null;
    _resultSc.close();
  }
}