LatLngBounds
A latitude/longitude aligned rectangle.
Constructors
LatLngBounds.new
LatLngBounds.new({required LatLng southwest, required LatLng northeast})Creates geographical bounding box with the specified corners.
Properties
| Property | Type | Description |
|---|---|---|
hashCode | int | The hash code for this object. (no setteroverride) |
northeast | LatLng | The northeast corner of the rectangle. (final) |
southwest | LatLng | The southwest corner of the rectangle. (final) |
Methods
contains
contains(LatLng point) → boolReturns whether this rectangle contains the given LatLng.
toJson
toJson() → ObjectConverts this object to something serializable in JSON.
Last updated on