findClosestCity method

City? findClosestCity(
  1. GeoCoords target
)

Finds the City in this Region nearest to the target.

Returns: The City, if found, otherwise null

Implementation

City? findClosestCity(GeoCoords target) => cities.findClosestTo(target);