Location class

This object represents a point on the map.

Constructors

Location({required double longitude, required double latitude, double? horizontalAccuracy, int? livePeriod, int? heading, int? proximityAlertRadius})
Basic constructor

Properties

hashCode → int
The hash code for this object.
no setterinherited
heading ↔ int?
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
getter/setter pair
horizontalAccuracy ↔ double?
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
getter/setter pair
latitude ↔ double
Latitude as defined by sender
getter/setter pair
livePeriod ↔ int?
Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
getter/setter pair
longitude ↔ double
Longitude as defined by sender
getter/setter pair
proximityAlertRadius ↔ int?
Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map
Creates a json from the object
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) → Location
Creates a object from a json