ChatwootChat constructor

const ChatwootChat({
  1. Key? key,
  2. required String baseUrl,
  3. required String inboxIdentifier,
  4. bool enablePersistence = true,
  5. ChatwootUser? user,
  6. PreferredSizeWidget? appBar,
  7. Future<void> onEndReached()?,
  8. double? onEndReachedThreshold,
  9. void onMessageLongPress(
    1. Message
    )?,
  10. void onMessageTap(
    1. Message
    )?,
  11. void onSendPressed(
    1. PartialText
    )?,
  12. void onTextChanged(
    1. String
    )?,
  13. bool showUserAvatars = true,
  14. bool showUserNames = true,
  15. ChatwootChatTheme? theme,
  16. ChatwootL10n? l10n,
  17. DateFormat? timeFormat,
  18. DateFormat? dateFormat,
  19. void onWelcome()?,
  20. void onPing()?,
  21. void onConfirmedSubscription()?,
  22. void onMessageReceived(
    1. ChatwootMessage
    )?,
  23. void onMessageSent(
    1. ChatwootMessage
    )?,
  24. void onMessageDelivered(
    1. ChatwootMessage
    )?,
  25. void onPersistedMessagesRetrieved(
    1. List<ChatwootMessage>
    )?,
  26. void onMessagesRetrieved(
    1. List<ChatwootMessage>
    )?,
  27. void onConversationStartedTyping()?,
  28. void onConversationStoppedTyping()?,
  29. void onConversationIsOnline()?,
  30. void onConversationIsOffline()?,
  31. void onError(
    1. ChatwootClientException
    )?,
  32. bool isPresentedInDialog = false,
})

Implementation

const ChatwootChat(
    {Key? key,
    required this.baseUrl,
    required this.inboxIdentifier,
    this.enablePersistence = true,
    this.user,
    this.appBar,
    this.onEndReached,
    this.onEndReachedThreshold,
    this.onMessageLongPress,
    this.onMessageTap,
    this.onSendPressed,
    this.onTextChanged,
    this.showUserAvatars = true,
    this.showUserNames = true,
    this.theme,
    this.l10n,
    this.timeFormat,
    this.dateFormat,
    this.onWelcome,
    this.onPing,
    this.onConfirmedSubscription,
    this.onMessageReceived,
    this.onMessageSent,
    this.onMessageDelivered,
    this.onPersistedMessagesRetrieved,
    this.onMessagesRetrieved,
    this.onConversationStartedTyping,
    this.onConversationStoppedTyping,
    this.onConversationIsOnline,
    this.onConversationIsOffline,
    this.onError,
    this.isPresentedInDialog = false})
    : super(key: key);