toArray method
Implementation
List<num> toArray([List<num>? array, int offset = 0]) {
if (array == null) {
array = List<num>.filled(offset + 3, 0);
} else {
while (array.length < offset + 3) {
array.add(0.0);
}
}
array[offset] = x;
array[offset + 1] = y;
array[offset + 2] = z;
return array;
}