InlineQueryResultArticlePatterns extension
Adds pattern-matching-related methods to InlineQueryResultArticle.
Methods
-
map<
TResult extends Object?> (TResult $default(_InlineQueryResultArticle value)) → TResult -
Available on InlineQueryResultArticle, provided by the InlineQueryResultArticlePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_InlineQueryResultArticle value)?) → TResult? -
Available on InlineQueryResultArticle, provided by the InlineQueryResultArticlePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_InlineQueryResultArticle value)?, {required TResult orElse()}) → TResult -
Available on InlineQueryResultArticle, provided by the InlineQueryResultArticlePatterns extension
A variant ofmapthat fallback to returningorElse.