move method

void move(
  1. int currentIndex,
  2. int newIndex
)

Moves a child player from currentIndex to newIndex.

Implementation

void move(int currentIndex, int newIndex) {
  audioSourcePlayers.insert(
      newIndex, audioSourcePlayers.removeAt(currentIndex));
}