InlineQueryResultArticle class abstract

Represents a link to an article or web page.

Implemented types
Available extensions
Annotations
  • @freezed

Constructors

InlineQueryResultArticle({@JsonKey.new(name: 'id') required String id, @JsonKey.new(name: 'title') required String title, @JsonKey.new(name: 'input_message_content') @InputMessageContentConverter() required InputMessageContent inputMessageContent, @JsonKey.new(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup, @JsonKey.new(name: 'url') String? url, @JsonKey.new(name: 'description') String? description, @JsonKey.new(name: 'thumbnail_url') String? thumbnailUrl, @JsonKey.new(name: 'thumbnail_width') int? thumbnailWidth, @JsonKey.new(name: 'thumbnail_height') int? thumbnailHeight, @JsonKey.new(name: 'type') @Default.new(InlineQueryResultType.article) InlineQueryResultType type})
This object represents a link to an article or web page.
const
factory
InlineQueryResultArticle.fromJson(Map<String, dynamic> json)
Creates an instance of InlineQueryResultArticle from JSON data
factory

Properties

copyWith → $InlineQueryResultArticleCopyWith<InlineQueryResultArticle>
Create a copy of InlineQueryResultArticle with the given fields replaced by the non-null parameter values.
no setterinherited
description → String?
Optional. Short description of the result
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique identifier for this result
no setterinherited
inputMessageContent → InputMessageContent
Content of the message to be sent
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
Title of the result
no setterinherited
type → InlineQueryResultType
Type of the result, always InlineQueryResultType.article
no setterinherited
url → String?
Optional. URL of the result
no setterinherited

Methods

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

Available on InlineQueryResultArticle, provided by the InlineQueryResultArticlePatterns extension

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

Available on InlineQueryResultArticle, provided by the InlineQueryResultArticlePatterns extension

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

Available on InlineQueryResultArticle, provided by the InlineQueryResultArticlePatterns 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 InlineQueryResultArticle to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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