loadAudio method
Loads a audio using the path provided.
Returns the loaded audio file.
Implementation
Future<void> loadAudio({required File audioFile}) async {
currentAudioFile = audioFile;
if (audioFile.existsSync()) {
_audioPlayer = AudioPlayer();
await _audioPlayer?.setSource(DeviceFileSource(audioFile.path));
_controller.add(TrimmerEvent.initialized);
// await _audioPlayer!.).then((_) {
//
// });
}
}