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

Constructors

InlineQueryResultLocation({@JsonKey.new(name: 'type') @Default.new(InlineQueryResultType.location) InlineQueryResultType type, @JsonKey.new(name: 'id') required String id, @JsonKey.new(name: 'latitude') required double latitude, @JsonKey.new(name: 'longitude') required double longitude, @JsonKey.new(name: 'title') required String title, @JsonKey.new(name: 'horizontal_accuracy') int? horizontalAccuracy, @JsonKey.new(name: 'live_period') int? livePeriod, @JsonKey.new(name: 'heading') int? heading, @JsonKey.new(name: 'proximity_alert_radius') int? proximityAlertRadius, @JsonKey.new(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup, @JsonKey.new(name: 'input_message_content') @InputMessageContentConverter() InputMessageContent? inputMessageContent, @JsonKey.new(name: 'thumbnail_url') String? thumbnailUrl, @JsonKey.new(name: 'thumbnail_width') int? thumbnailWidth, @JsonKey.new(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

map<TResult extends Object?>(TResult $default(_InlineQueryResultLocation value)) → TResult

Available on InlineQueryResultLocation, provided by the InlineQueryResultLocationPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_InlineQueryResultLocation value)?) → TResult?

Available on InlineQueryResultLocation, provided by the InlineQueryResultLocationPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_InlineQueryResultLocation value)?, {required TResult orElse()}) → TResult

Available on InlineQueryResultLocation, provided by the InlineQueryResultLocationPatterns extension

A variant of map that fallback to returning orElse.
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