findClosestCity method

City? findClosestCity(
  1. GeoCoords target
)

Finds the City in this Country nearest to the target.

Returns: The City, if found, otherwise null

Implementation

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