move method

void move(
  1. T element,
  2. int index
)

Moves the element to the specified index position in this List.

Implementation

void move(T element, int index) {
  RangeError.checkValidIndex(index, this, 'index');
  if (remove(element)) insert(index, element);
}