play method

Future<void> play()

Play current loaded audio Update configuration (volume and loopMode)

Implementation

Future<void> play() async {
  await _player.setLoopMode(loopMode);
  await _player.setVolume(volume);
  await _player.play();
}