toArray method

List<num> toArray(
  1. List<num> array, [
  2. int offset = 0
])

Implementation

List<num> toArray(List<num> array, [int offset = 0]) {
  array[offset] = x;
  array[offset + 1] = y;
  array[offset + 2] = z;
  array[offset + 3] = w;

  return array;
}