chat_widget library

Classes

BotConfiguration
Configuration for the chatbot widget behavior and appearance.
CarouselConfig
Configuration for carousel component.
ChatWidget
A floating action button that opens a chat interface with smooth animations.
ChatWidgetState
The state class for ChatWidget, managing chat interactions and animations.
FabConfiguration
Configuration for the floating action button (FAB) that opens the chat.
LocalizedText
Represents a localized text value with translations for different languages
ProductListConfig
Configuration for product list component.
RemoteConfig
Remote configuration fetched from the server.
RichAction
Base sealed class for all action types.
RichButton
Button data for button group component.
RichComponent
Base sealed class for all rich content components.
RichContentResponse
Response containing rich content components from the backend.
RichImage
Image data for cards and image components.

Extensions

BotConfigurationLocalization on BotConfiguration
BotConfigurationPatterns on BotConfiguration
Adds pattern-matching-related methods to BotConfiguration.
CarouselConfigPatterns on CarouselConfig
Adds pattern-matching-related methods to CarouselConfig.
FabConfigurationPatterns on FabConfiguration
Adds pattern-matching-related methods to FabConfiguration.
LocalizedTextPatterns on LocalizedText
Adds pattern-matching-related methods to LocalizedText.
ProductListConfigPatterns on ProductListConfig
Adds pattern-matching-related methods to ProductListConfig.
RemoteConfigPatterns on RemoteConfig
Adds pattern-matching-related methods to RemoteConfig.
RichActionPatterns on RichAction
Adds pattern-matching-related methods to RichAction.
RichButtonPatterns on RichButton
Adds pattern-matching-related methods to RichButton.
RichComponentPatterns on RichComponent
Adds pattern-matching-related methods to RichComponent.
RichContentResponsePatterns on RichContentResponse
Adds pattern-matching-related methods to RichContentResponse.
RichImagePatterns on RichImage
Adds pattern-matching-related methods to RichImage.

Typedefs

OnCustomCallback = void Function(String callbackId, Map<String, dynamic>? payload)
Callback type for custom actions from rich content.