BoundingBox constructor

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

@param minLatitude the minimum latitude coordinate in degrees. @param minLongitude the minimum longitude coordinate in degrees. @param maxLatitude the maximum latitude coordinate in degrees. @param maxLongitude the maximum longitude coordinate in degrees. @throws IllegalArgumentException if a coordinate is invalid.

Implementation

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