playAudio method

void playAudio(
  1. String filePath
)

Implementation

void playAudio(String filePath) {
  if (kIsWeb && filePath.isNotEmpty) {
    audioService.playLocalFile(filePath);
    return;
  }
  mobileAudioPlayer.open(
    Audio(filePath),
    autoStart: true,
    showNotification: false,
  );
}