findClosestRegion method

Region? findClosestRegion(
  1. GeoCoords target
)

Finds the Region in this Country nearest to the target.

Returns: A Region, if found, otherwise null

Implementation

Region? findClosestRegion(GeoCoords target) =>
    findClosestCountry(target)?.states.findClosestTo(target);