Vector2List.view constructor Null safety

Vector2List.view(
  1. Float32List buffer,
  2. [int offset = 0,
  3. int stride = 0]
)

Create a new vector list as a view of buffer. Optionally it is possible to specify a offset in the buffer and a stride between each vector.

Implementation

Vector2List.view(Float32List buffer, [int offset = 0, int stride = 0])
    : super.view(buffer, 2, offset, stride);