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