Vector2.all constructor

Vector2.all(
  1. double value
)

Splat value into all lanes of the vector.

Implementation

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