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})
Constructs a Location object
const
Location.fromJson(Map<String, dynamic> json)
Constructs a Location object from a JSON map
factory

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.
final
horizontalAccuracy double?
The radius of uncertainty for the location, measured in meters; 0-1500
final
latitude double
Latitude as defined by sender
final
livePeriod int?
Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
final
longitude double
Longitude as defined by sender
final
proximityAlertRadius int?
Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
final
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<String, dynamic>
Converts a Location object to a JSON map
toString() String
A string representation of this object.
inherited

Operators

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