play static method

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

播放短音频

Implementation

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