MessageLocation class

Inheritance

Constructors

MessageLocation({Location location, int livePeriod, int expiresIn, int heading, int proximityAlertRadius})
A message with a location
MessageLocation.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

expiresIn int
expiresIn Left time for which the location can be updated, in seconds. updateMessageContent is not sent when this field changes
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
heading int
heading For live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown
read / write
livePeriod int
livePeriod Time relative to the message send date, for which the location can be updated, in seconds
read / write
location Location
location The location description
read / write
proximityAlertRadius int
proximityAlertRadius For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only for the message sender
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() 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
'messageLocation'