operator * method Null safety

Vector2 operator *(
  1. double scale
)

Scale.

Implementation

Vector2 operator *(double scale) => clone()..scale(scale);