getPlayer method

SimpleAudioPlayer getPlayer()

Implementation

SimpleAudioPlayer getPlayer() {
  var parts = audioPath.split('.');
  var extension = parts.last;

  var player = createPlayer(audioPath, extension);
  return player;
}