distanceTo method

double distanceTo(
  1. Offset other
)

Implementation

double distanceTo(Offset other) {
  return (this - other).distance;
}