ConcatenatingAudioSource constructor

ConcatenatingAudioSource({
  1. required List<AudioSource> children,
  2. bool useLazyPreparation = true,
  3. ShuffleOrder? shuffleOrder,
})

Creates a ConcatenatingAudioSorce with the specified children. If useLazyPreparation is true, children will be loaded/buffered as late as possible before needed for playback (currently supported on Android only). When AudioPlayer.shuffleModeEnabled is true, shuffleOrder will be used to determine the playback order (defaulting to DefaultShuffleOrder).

Implementation

ConcatenatingAudioSource({
  required this.children,
  this.useLazyPreparation = true,
  ShuffleOrder? shuffleOrder,
}) : _shuffleOrder = shuffleOrder ?? DefaultShuffleOrder()
        ..insert(0, children.length);