RectangleGeographicArea class Core
RectangleGeographicArea object.
- Implemented types
Constructors
- RectangleGeographicArea.new({required Coordinates topLeft, required Coordinates bottomRight})
-
RectangleGeographicArea.fromJson(Map<
String, dynamic> json) -
factory
Properties
- bottomRight ↔ Coordinates
-
getter/setter pair
- boundingBox → RectangleGeographicArea
-
Get the bounding box.
This is the smallest rectangle that can be drawn around the area such that it surrounds this geographic area
completely.
no setteroverride
- centerPoint → Coordinates
-
Retrieves the center point of the geographic area.
Calculates and returns the geographic center of the area.
no setteroverride
- copy → RectangleGeographicArea
-
Create a new RectangleGeographicArea object with the same properties as the original.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isDefault → bool
-
Checks if the geographic area has default values.
no setteroverride
- isEmpty → bool
-
Checks if the geographic area is empty.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topLeft ↔ Coordinates
-
getter/setter pair
- type → GeographicAreaType
-
Retrieves the specific type of the geographic area.
no setteroverride
Methods
-
contains(
RectangleGeographicArea area) → bool - Checks if this rectangle completely contains another rectangle.
-
containsCoordinates(
Coordinates point) → bool -
Checks if the specified point is contained within the geographic area.
override
-
convert(
GeographicAreaType toType) → GeographicArea? -
Converts the geographic area to another type, if possible.
override
-
intersects(
RectangleGeographicArea area) → bool - Checks if this rectangle intersects with another rectangle.
-
makeIntersection(
RectangleGeographicArea area) → RectangleGeographicArea - Creates a new RectangleGeographicArea as the intersection of this rectangle and another rectangle.
-
makeUnion(
RectangleGeographicArea area) → RectangleGeographicArea - Creates a new RectangleGeographicArea as the union of this rectangle and another rectangle.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
Resets the geographic area object to its default state.
override
-
setFromBounds(
{required double minLat, required double maxLat, required double minLon, required double maxLon}) → void - Sets the rectangle using min/max latitude and longitude.
-
setFromCenterAndRadii(
{required Coordinates coords, required double horizRadius, required double vertRadius}) → void - Sets the rectangle using a center coordinate and horizontal/vertical radii (in meters).
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant RectangleGeographicArea other) → bool -
The equality operator.
override