stop method

Future<void> stop()

Stops the audio that is currently playing.

Implementation

Future<void> stop() async {
  if (_vibrationTimer != null) {
    _vibrationTimer?.cancel();
    Vibration.cancel();
  }

  _incomingAudio?.cancel();
  _outgoingAudio?.cancel();
}