SolevatoChat constructor

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

Implementation

const SolevatoChat(
    {Key? key,
    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 = const SolevatoChatTheme(),
    this.l10n = const SolevatoL10n(),
    this.timeFormat,
    this.dateFormat,
    this.onWelcome,
    this.onPing,
    this.onConfirmedSubscription,
    this.onMessageReceived,
    this.onMessageSent,
    this.onMessageDelivered,
    this.onMessageUpdated,
    this.onPersistedMessagesRetrieved,
    this.onMessagesRetrieved,
    this.onConversationStartedTyping,
    this.onConversationStoppedTyping,
    this.onConversationIsOnline,
    this.onConversationIsOffline,
    this.onError,
    this.isPresentedInDialog = false})
    : super(key: key);