InlineQueryResultCachedPhotoPatterns extension

Adds pattern-matching-related methods to InlineQueryResultCachedPhoto.

on

Methods

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

Available on InlineQueryResultCachedPhoto, provided by the InlineQueryResultCachedPhotoPatterns extension

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

Available on InlineQueryResultCachedPhoto, provided by the InlineQueryResultCachedPhotoPatterns extension

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

Available on InlineQueryResultCachedPhoto, provided by the InlineQueryResultCachedPhotoPatterns extension

A variant of map that fallback to returning orElse.