ChatBox constructor

const ChatBox({
  1. Key? key,
  2. required Session session,
  3. TextDirection? dir,
  4. MessageFieldOptions? messageField,
  5. bool? showChatHeader,
  6. TranslationToggle? showTranslationToggle,
  7. String? theme,
  8. ThemeOptions? themeOptions,
  9. TranslateConversations? translateConversations,
  10. List<String> highlightedWords = const <String>[],
  11. BaseMessagePredicate? messageFilter,
  12. Conversation? conversation,
  13. bool? asGuest,
  14. bool enableZoom = false,
  15. SendMessageHandler? onSendMessage,
  16. TranslationToggledHandler? onTranslationToggled,
  17. LoadingStateHandler? onLoadingStateChanged,
  18. Map<String, MessageActionHandler>? onCustomMessageAction,
  19. Map<String, ConversationActionHandler>? onCustomConversationAction,
  20. NavigationHandler? onUrlNavigation,
  21. 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);