distanceSquared property Null safety
The square of the magnitude of the offset.
This is cheaper than computing the distance itself.
Implementation
double get distanceSquared => dx * dx + dy * dy;
The square of the magnitude of the offset.
This is cheaper than computing the distance itself.
double get distanceSquared => dx * dx + dy * dy;