stop method
Stops the audio playback.
This method invokes the native method to stop the audio chunk player.
Implementation
Future<void> stop() async {
try {
// Invoke the native method to stop the audio player
await _channel.invokeMethod('stopAudioChunkPlayer');
} catch (e) {
// Log any errors that occur while stopping playback
log("Error stopping playback: ${e.toString()}");
}
}