set method

NativeArray<num> set(
  1. List<T> newList, [
  2. int index = 0
])

Implementation

NativeArray set(List<T> newList, [int index = 0]) {
  toDartList()
      .setAll(index, newList.sublist(0, math.min(newList.length, length)));
  return this;
}