InlineQueryResultCachedMpeg4GifPatterns extension

Adds pattern-matching-related methods to InlineQueryResultCachedMpeg4Gif.

on

Methods

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

Available on InlineQueryResultCachedMpeg4Gif, provided by the InlineQueryResultCachedMpeg4GifPatterns extension

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

Available on InlineQueryResultCachedMpeg4Gif, provided by the InlineQueryResultCachedMpeg4GifPatterns extension

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

Available on InlineQueryResultCachedMpeg4Gif, provided by the InlineQueryResultCachedMpeg4GifPatterns extension

A variant of map that fallback to returning orElse.