findClosestRegion method

Region? findClosestRegion(
  1. GeoCoords target
)

Finds the Region in this Country nearest to the target.

Returns: The Region, if found, otherwise null

Implementation

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