MessageLocation class final
A message with a location
- Inheritance
-
- Object
- TdObject
- MessageContent
- MessageLocation
Constructors
- MessageLocation({required Location location, required int livePeriod, required int expiresIn, required int heading, required int proximityAlertRadius})
-
A message with a location
const
-
MessageLocation.fromJson(Map<
String, dynamic> json) -
Parses a MessageLocation from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- expiresIn → int
-
Left time for which the location can be updated, in seconds. updateMessageContent is not sent when this field changes
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- heading → int
-
For live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown
final
- livePeriod → int
-
Time relative to the message send date, for which the location can be updated, in seconds
final
- location → Location
-
The location description
final
- proximityAlertRadius → int
-
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 to the message sender
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{Location? location, int? livePeriod, int? expiresIn, int? heading, int? proximityAlertRadius}) → MessageLocation -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it.override -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.