insertAll method

void insertAll(
  1. int index,
  2. List<AudioSourcePlayer> players
)

Inserts players into this player at position index.

Implementation

void insertAll(int index, List<AudioSourcePlayer> players) {
  audioSourcePlayers.insertAll(index, players);
  for (var i = 0; i < audioSourcePlayers.length; i++) {
    if (_shuffleOrder[i] >= index) {
      _shuffleOrder[i] += players.length;
    }
  }
}