findClosestCountry method

Country? findClosestCountry(
  1. GeoCoords target
)

Finds the Country instance closest to the provided target

Returns: A Country, if found, otherwise null

Implementation

Country? findClosestCountry(GeoCoords target) =>
    countries.findClosestTo(target);