dist method

double dist(
  1. GraphPoint other
)

Implementation

double dist(GraphPoint other) {
  final dx = x - other.x;
  final dy = y - other.y;
  return sqrt(dx * dx + dy * dy);
}