stop method
void
stop()
Stops the recording process.
Implementation
void stop() async {
if (!_isRecording) return;
_isRecording = false;
await _subscription?.cancel();
await _sink?.flush();
await _sink?.close();
_subscription = null;
_sink = null;
}