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