Vector2.array constructor Null safety

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

Initialized with values from array starting at offset.

Implementation

factory Vector2.array(List<double> array, [int offset = 0]) =>
    Vector2.zero()..copyFromArray(array, offset);