ChatBox constructor
const
ChatBox({
- Key? key,
- required Session session,
- TextDirection? dir,
- MessageFieldOptions? messageField,
- bool? showChatHeader,
- TranslationToggle? showTranslationToggle,
- String? theme,
- ThemeOptions? themeOptions,
- TranslateConversations? translateConversations,
- List<
String> highlightedWords = const <String>[], - BaseMessagePredicate? messageFilter,
- Conversation? conversation,
- bool? asGuest,
- bool enableZoom = false,
- SendMessageHandler? onSendMessage,
- TranslationToggledHandler? onTranslationToggled,
- LoadingStateHandler? onLoadingStateChanged,
- Map<
String, MessageActionHandler> ? onCustomMessageAction, - Map<
String, ConversationActionHandler> ? onCustomConversationAction, - String? scrollToMessage,
Implementation
const ChatBox({
Key? key,
required this.session,
this.dir,
this.messageField,
this.showChatHeader,
this.showTranslationToggle,
this.theme,
this.themeOptions,
this.translateConversations,
this.highlightedWords = const <String>[],
this.messageFilter,
this.conversation,
this.asGuest,
this.enableZoom = false,
this.onSendMessage,
this.onTranslationToggled,
this.onLoadingStateChanged,
this.onCustomMessageAction,
this.onCustomConversationAction,
this.onUrlNavigation,
this.scrollToMessage,
}) : super(key: key);