Location class

Inheritance

Constructors

Location({required double latitude, required double longitude, required double horizontalAccuracy})
Describes a location on planet Earth
const
Location.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

clientId int?
client identifier
no setterinherited
extra → dynamic
callback sign
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
horizontalAccuracy double
horizontalAccuracy The estimated horizontal accuracy of the location, in meters; as defined by the sender. 0 if unknown
final
latitude double
latitude Latitude of the location in degrees; as defined by the sender
final
longitude double
longitude Longitude of the location, in degrees; as defined by the sender
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({double? latitude, double? longitude, double? horizontalAccuracy}) Location
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String