stop method

Future<void> stop()

Stop capturing and flush any buffered events.

Implementation

Future<void> stop() async {
  if (!_recording) return;
  _recording = false;
  _controller.stop();
  await NexusPlatform.instance.stopReplay();
  await _queue.flush();
}