distanceSquaredTo method

double distanceSquaredTo(
  1. Offset point
)

Implementation

double distanceSquaredTo(Offset point) {
  double l2 = (this - point).distanceSquared;
  return l2;
}