OptLatLngBounds 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`
, ifsouthwest.longitude
≤northeast.longitude
, - lng ∈
-180, `northeast.longitude`
∪ [southwest.longitude
, 180[, ifnortheast.longitude
<southwest.longitude
Constructors
- OptLatLngBounds.new({required OptLatLng southwest, required OptLatLng northeast})
- Creates geographical bounding box with the specified corners.
-
OptLatLngBounds.fromMultiOptLatLng(List<
OptLatLng> multiOptLatLng) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- northeast ↔ OptLatLng
-
The northeast corner of the rectangle.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- southwest ↔ OptLatLng
-
The southwest corner of the rectangle.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toList(
) → dynamic -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromList(
dynamic json) → OptLatLngBounds?