stop method

Future<void> stop()

Immediately stops any ongoing speech

Implementation

Future<void> stop() async {
  if (_isSpeaking) {
    await _tts.stop();
    _isSpeaking = false;
  }
}