GeoCoordBounds constructor

GeoCoordBounds({
  1. required GeoCoord southwest,
  2. required GeoCoord northeast,
})

Creates geographical bounding box with the specified corners.

The latitude of the southwest corner cannot be larger than the latitude of the northeast corner.

Implementation

GeoCoordBounds({required this.southwest, required this.northeast})
    : assert(southwest.latitude <= northeast.latitude);