FlowPlayer constructor

FlowPlayer({
  1. AudioPlayer? mockedAudioPlayer,
  2. LoopMode loopMode = LoopMode.off,
  3. double volume = 1,
})

mockedAudioPlayer is audioPlayer used Useful for testing

Implementation

FlowPlayer({
  AudioPlayer? mockedAudioPlayer,
  this.loopMode = LoopMode.off, // Default no loop
  this.volume = 1,
}) : _player = mockedAudioPlayer ?? AudioPlayer();