InlineQueryResultLocation class

Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.

Implemented types

Constructors

InlineQueryResultLocation({required double latitude, required double longitude, required String title, required String id, int? horizontalAccuracy, int? livePeriod, int? heading, int? proximityAlertRadius, InlineKeyboardMarkup? replyMarkup, InputMessageContent? inputMessageContent, String? thumbnailUrl, int? thumbnailWidth, int? thumbnailHeight})
Constructs an InlineQueryResultLocation object
const
InlineQueryResultLocation.fromJson(Map<String, dynamic> json)
Constructs an InlineQueryResultLocation object from a JSON map
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
heading int?
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
final
horizontalAccuracy int?
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
final
id String
Unique identifier for this result, 1-64 Bytes
final
inputMessageContent InputMessageContent?
Optional. Content of the message to be sent instead of the location
final
latitude double
Location latitude in degrees
final
livePeriod int?
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
final
longitude double
Location longitude in degrees
final
proximityAlertRadius int?
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
final
replyMarkup InlineKeyboardMarkup?
Optional. Inline keyboard attached to the message
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnailHeight int?
Optional. Thumbnail height
final
thumbnailUrl String?
Optional. Url of the thumbnail for the result
final
thumbnailWidth int?
Optional. Thumbnail width
final
title String
Location title
final
type InlineQueryResultType
Type of the result, always InlineQueryResultType.location
no setteroverride

Methods

copyWith({String? id, double? latitude, double? longitude, String? title, int? horizontalAccuracy, int? livePeriod, int? heading, int? proximityAlertRadius, InlineKeyboardMarkup? replyMarkup, InputMessageContent? inputMessageContent, String? thumbnailUrl, int? thumbnailWidth, int? thumbnailHeight}) InlineQueryResultLocation
Copy method
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts an InlineQueryResultLocation object to a JSON map
override
toString() String
A string representation of this object.
inherited

Operators

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