setList<T> function

void setList<T>(
  1. List<T> target,
  2. List<T> source
)

Implementation

void setList<T>(List<T> target, List<T> source) {
  int tlen = target.length;
  int slen = source.length;

  for (var i = 0; i < slen; i++) {
    if (i >= tlen) {
      break;
    }
    target[i] = source[i];
  }
}