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