distance static method

double distance(
  1. Offset a,
  2. Offset b
)

Implementation

static double distance(Offset a, Offset b) {
  return (a - b).distance;
}