InlineQueryResultLocation class abstract

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
Annotations
  • @freezed

Constructors

InlineQueryResultLocation.new({@JsonKey(name: 'type') @Default(InlineQueryResultType.location) InlineQueryResultType type, @JsonKey(name: 'id') required String id, @JsonKey(name: 'latitude') required double latitude, @JsonKey(name: 'longitude') required double longitude, @JsonKey(name: 'title') required String title, @JsonKey(name: 'horizontal_accuracy') int? horizontalAccuracy, @JsonKey(name: 'live_period') int? livePeriod, @JsonKey(name: 'heading') int? heading, @JsonKey(name: 'proximity_alert_radius') int? proximityAlertRadius, @JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup, @JsonKey(name: 'input_message_content') @InputMessageContentConverter() InputMessageContent? inputMessageContent, @JsonKey(name: 'thumbnail_url') String? thumbnailUrl, @JsonKey(name: 'thumbnail_width') int? thumbnailWidth, @JsonKey(name: 'thumbnail_height') int? thumbnailHeight})
Constructs an InlineQueryResultLocation object
const
factory
InlineQueryResultLocation.fromJson(Map<String, dynamic> json)
Creates an InlineQueryResultLocation object from JSON data
factory

Properties

copyWith → $InlineQueryResultLocationCopyWith<InlineQueryResultLocation>
Create a copy of InlineQueryResultLocation with the given fields replaced by the non-null parameter values.
no setterinherited
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.
no setterinherited
horizontalAccuracy int?
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
no setterinherited
id String
Unique identifier for this result, 1-64 Bytes
no setterinherited
inputMessageContent InputMessageContent?
Optional. Content of the message to be sent instead of the location
no setterinherited
latitude double
Location latitude in degrees
no setterinherited
livePeriod int?
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
no setterinherited
longitude double
Location longitude in degrees
no setterinherited
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.
no setterinherited
replyMarkup → InlineKeyboardMarkup?
Optional. Inline keyboard attached to the message
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnailHeight int?
Optional. Thumbnail height
no setterinherited
thumbnailUrl String?
Optional. Url of the thumbnail for the result
no setterinherited
thumbnailWidth int?
Optional. Thumbnail width
no setterinherited
title String
Location title
no setterinherited
type InlineQueryResultType
Type of the result, always InlineQueryResultType.location
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this InlineQueryResultLocation to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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