calculateDistances method

void calculateDistances(
  1. Coordinate clientCoordinate
)

Implementation

void calculateDistances(Coordinate clientCoordinate) {
  for (final s in servers) {
    s.distance = clientCoordinate.getDistanceTo(s.geoCoordinate);
  }
}