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
- radiusInKilometers → double
-
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
distanceToCenter(
GeoPoint point) → double -
returns the distance in km of
point
to center -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
@pragma("vm:entry-point"), inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited