LatLngBounds class

Data structure representing rectangular bounding box constrained by its northwest and southeast corners

Implementers

Constructors

LatLngBounds(LatLng corner1, LatLng corner2)
LatLngBounds.fromPoints(List<LatLng> points)

Properties

center LatLng
Obtain coordinates of the bounds center
no setter
east double
Obtain east edge of the bounds
no setter
hashCode int
The hash code for this object.
no setteroverride
north double
Obtain north edge of the bounds
no setter
northEast LatLng
Obtain coordinates of northeast corner of the bounds
no setter
northWest LatLng
Obtain coordinates of northwest corner of the bounds
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
south double
Obtain south edge of the bounds
no setter
southEast LatLng
Obtain coordinates of southeast corner of the bounds
no setter
southWest LatLng
Obtain coordinates of southwest corner of the bounds
no setter
west double
Obtain west edge of the bounds
no setter

Methods

contains(LatLng point) bool
Checks whether point is inside bounds
containsBounds(LatLngBounds bounds) bool
Checks whether bounds is contained inside bounds
extend(LatLng latLng) → void
Expands bounding box by latLng coordinate point. This method mutates the bounds object on which it is called.
extendBounds(LatLngBounds bounds) → void
Expands bounding box by other bounds object. If provided bounds object is smaller than current one, it is not shrunk. This method mutates the bounds object on which it is called.
isOverlapping(LatLngBounds bounds) bool
Checks whether at least one edge of bounds is overlapping with some other edge of bounds
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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