SwitchInlineQueryChosenChatPatterns extension

Adds pattern-matching-related methods to SwitchInlineQueryChosenChat.

on

Methods

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

Available on SwitchInlineQueryChosenChat, provided by the SwitchInlineQueryChosenChatPatterns extension

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

Available on SwitchInlineQueryChosenChat, provided by the SwitchInlineQueryChosenChatPatterns extension

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

Available on SwitchInlineQueryChosenChat, provided by the SwitchInlineQueryChosenChatPatterns extension

A variant of map that fallback to returning orElse.