contains method

bool contains(
  1. double latitude,
  2. double? longitude
)

@param latitude the latitude coordinate in degrees. @param longitude the longitude coordinate in degrees. @return true if this BoundingBox contains the given coordinates, false otherwise.

Implementation

bool contains(double latitude, double? longitude) {
  return this.minLatitude <= latitude &&
      this.maxLatitude >= latitude &&
      this.minLongitude <= longitude! &&
      this.maxLongitude >= longitude;
}