MKCoordinateRegion class final
A rectangular geographic region as a center plus a span, mirroring
MKCoordinateRegion(center:span:).
See: https://developer.apple.com/documentation/mapkit/mkcoordinateregion
- Annotations
Constructors
- MKCoordinateRegion({required CLLocationCoordinate2D center, required MKCoordinateSpan span})
-
Creates a new MKCoordinateRegion object.
const
Properties
- center → CLLocationCoordinate2D
-
The center property.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- span → MKCoordinateSpan
-
The span property.
final
Methods
-
contains(
CLLocationCoordinate2D coordinate) → bool -
Whether
coordinatelies inside this region. Longitude is compared as the shortest angular distance from center, so regions spanning the antimeridian behave correctly. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
containing(
Iterable< CLLocationCoordinate2D> coordinates) → MKCoordinateRegion? -
Smallest region that contains all given
coordinates. Returns null whencoordinatesis empty.