ConcatenatingAudioSource constructor
ConcatenatingAudioSource({
- required List<
AudioSource> children, - bool useLazyPreparation = true,
- 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);