BotConfigurationPatterns extension
Adds pattern-matching-related methods to BotConfiguration.
Methods
-
map<
TResult extends Object?> (TResult $default(_BotConfiguration value)) → TResult -
Available on BotConfiguration, provided by the BotConfigurationPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_BotConfiguration value)?) → TResult? -
Available on BotConfiguration, provided by the BotConfigurationPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_BotConfiguration value)?, {required TResult orElse()}) → TResult -
Available on BotConfiguration, provided by the BotConfigurationPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String userID, String projectSecretKey, String? welcomeMessage, String? allowedOrigins, String? name, String? fontFamily, String? color, Uint8List? avatar, String? systemInstructions, bool isPreviewMode, FabConfiguration fabConfiguration)?, {required TResult orElse()}) → TResult -
Available on BotConfiguration, provided by the BotConfigurationPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(String userID, String projectSecretKey, String? welcomeMessage, String? allowedOrigins, String? name, String? fontFamily, String? color, Uint8List? avatar, String? systemInstructions, bool isPreviewMode, FabConfiguration fabConfiguration)) → TResult -
Available on BotConfiguration, provided by the BotConfigurationPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String userID, String projectSecretKey, String? welcomeMessage, String? allowedOrigins, String? name, String? fontFamily, String? color, Uint8List? avatar, String? systemInstructions, bool isPreviewMode, FabConfiguration fabConfiguration)?) → TResult? -
Available on BotConfiguration, provided by the BotConfigurationPatterns extension
A variant ofwhen
that fallback to returningnull