Area class

Defines the search area by a circle center / radiusInKilometers Based on the limitations of FireStore we can only search in rectangles which means that from this definition a final search square is calculated that contains the circle

Constructors

Area(GeoPoint center, double radiusInKilometers)
Area.inMeters(GeoPoint gp, int radiusInMeters)
factory
Area.inMiles(GeoPoint gp, int radiusMiles)
factory

Properties

center → GeoPoint
final
hashCode int
The hash code for this object.
no setterinherited
radiusInKilometers double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

distanceToCenter(GeoPoint point) double
returns the distance in km of point to center
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.
inherited