LocationData class

The response object of GeolocatorCN.getLocation and GeolocatorCN.onLocationChanged

Constructors

LocationData({double latitude = 0.0, double longitude = 0.0, CRS crs = CRS.unknown, String provider = '', double accuracy = 500, int timestamp = 0})
factory
LocationData.fromMap(Map<String, dynamic> dataMap)
factory

Properties

accuracy double
accuracy
final
crs CRS
the crs of this coordinate
final
hashCode int
The hash code for this object.
no setteroverride
latitude double
The latitude of the location
final
longitude double
Longitude of the location
final
provider String
The name of the provider that generated this data.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp int
time
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override