listCopy static method

void listCopy(
  1. List from,
  2. int fromLength,
  3. List to, [
  4. int toOffset = 0,
])

Implementation

static void listCopy(List from, int fromLength, List to, [int toOffset = 0]) {
  for (var i = 0; i < fromLength; i++) {
    to[i + toOffset] = from[i];
  }
}