toggleDictation method
Initializes or stops the dictation flow.
Implementation
Future<void> toggleDictation() async {
if (_isBusy) {
return;
}
_isBusy = true;
if (_augnitoAudioStream.isRecording) {
await _stopDictation();
} else {
_startDictation();
}
}