InlineQueryResultCachedGifPatterns extension

Adds pattern-matching-related methods to InlineQueryResultCachedGif.

on

Methods

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

Available on InlineQueryResultCachedGif, provided by the InlineQueryResultCachedGifPatterns extension

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

Available on InlineQueryResultCachedGif, provided by the InlineQueryResultCachedGifPatterns extension

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

Available on InlineQueryResultCachedGif, provided by the InlineQueryResultCachedGifPatterns extension

A variant of map that fallback to returning orElse.