Vector2.all constructor Null safety

Vector2.all(
  1. double value
)

Splat value into all lanes of the vector.

Implementation

factory Vector2.all(double value) => Vector2.zero()..splat(value);