move method

void move(
  1. int from,
  2. int to
)

Moves the element at from to to, shifting other elements.

Implementation

void move(int from, int to) {
  final item = removeAt(from);
  insert(to, item);
}