loop static method

Future<AudioPlayer> loop(
  1. String file, {
  2. double volume = 1.0,
})

Plays, and keeps looping the given file.

Implementation

static Future<AudioPlayer> loop(String file, {double volume = 1.0}) async {
  return audioCache.loop(file, volume: volume, mode: PlayerMode.LOW_LATENCY);
}