stop method

Future<void> stop()

Implementation

Future<void> stop() async {
  _running = false;
  _timer?.cancel();
  await _flush(force: true);
  await _channel?.shutdown();
}