GeoCoordBounds class

A latitude/longitude aligned rectangle.

The rectangle conceptually includes all points (lat, lng) where

  • lat ∈ `southwest.latitude`, `northeast.latitude`
  • lng ∈ `southwest.longitude`, `northeast.longitude`, if southwest.longitudenortheast.longitude,
  • lng ∈ -180, `northeast.longitude``southwest.longitude`, 180, if northeast.longitude < southwest.longitude

Constructors

GeoCoordBounds({required GeoCoord southwest, required GeoCoord northeast})
Creates geographical bounding box with the specified corners.

Properties

hashCode int
The hash code for this object.
no setteroverride
northeast GeoCoord
The northeast corner of the rectangle.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
southwest GeoCoord
The southwest corner of the rectangle.
final

Methods

contains(GeoCoord point) bool
Returns whether this rectangle contains the given GeoCoord.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override