Skip to Content

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

PropertyTypeDescription
hashCodeintThe hash code for this object. (no setteroverride)
northeastLatLngThe northeast corner of the rectangle. (final)
southwestLatLngThe southwest corner of the rectangle. (final)

Methods

contains

contains(LatLng point) → bool

Returns whether this rectangle contains the given LatLng.

toJson

toJson() → Object

Converts this object to something serializable in JSON.

Last updated on