LatLngBounds 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

LatLngBounds({@required LatLng southwest, @required LatLng northeast})
Creates geographical bounding box with the specified corners. [...]

Properties

hashCode int
The hash code for this object. [...]
read-only, override
northeast LatLng
The northeast corner of the rectangle.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
southwest LatLng
The southwest corner of the rectangle.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toList() → dynamic
toString() String
Returns a string representation of this object.
override

Operators

operator ==(Object o) bool
The equality operator. [...]
override

Static Methods

fromList(dynamic json) LatLngBounds