BoundingBox constructor

const BoundingBox(
  1. double minLatitude,
  2. double minLongitude,
  3. double maxLatitude,
  4. double maxLongitude,
)

Creates a BoundingBox with the specified coordinate boundaries.

minLatitude The southern boundary in decimal degrees minLongitude The western boundary in decimal degrees maxLatitude The northern boundary in decimal degrees maxLongitude The eastern boundary in decimal degrees

Asserts that min values are less than or equal to max values

Implementation

const BoundingBox(this.minLatitude, this.minLongitude, this.maxLatitude, this.maxLongitude)
  : assert(minLatitude <= maxLatitude),
    assert(minLongitude <= maxLongitude);