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