GeoPoint class

Defines a geographical point

Constructors

GeoPoint(double latitude, double longitude)
const
GeoPoint.fromJson(Map<String, dynamic> map)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
latitude double
final
longitude double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({double? latitude, double? longitude}) GeoPoint
distance(GeoPoint other, {double radius = GeoPoint.earthRadius}) double
Returns a distance
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, double>
toString() String
A string representation of this object.
override

Operators

operator +(GeoPoint other) GeoPoint
operator -(GeoPoint other) GeoPoint
operator <(GeoPoint other) bool
operator <=(GeoPoint other) bool
operator ==(Object other) bool
The equality operator.
override
operator >(GeoPoint other) bool
operator >=(GeoPoint other) bool

Constants

earthRadius → const double