FlowPlayer constructor
FlowPlayer({
- AudioPlayer? mockedAudioPlayer,
- LoopMode loopMode = LoopMode.off,
- 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();