RuutChatView constructor

const RuutChatView({
  1. Key? key,
  2. required String inboxIdentifier,
  3. bool enablePersistence = true,
  4. RuutUser? 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. Message
    )?,
  11. void onTextChanged(
    1. String
    )?,
  12. bool showUserAvatars = true,
  13. bool showUserNames = true,
  14. RuutChatTheme theme = const RuutChatTheme(),
  15. RuutChatL10n l10n = const RuutChatL10n(),
  16. DateFormat? timeFormat,
  17. DateFormat? dateFormat,
  18. void onWelcome()?,
  19. void onPing()?,
  20. void onConfirmedSubscription()?,
  21. void onMessageReceived(
    1. RuutMessage
    )?,
  22. void onMessageSent(
    1. RuutMessage
    )?,
  23. void onMessageDelivered(
    1. RuutMessage
    )?,
  24. void onMessageUpdated(
    1. RuutMessage
    )?,
  25. void onPersistedMessagesRetrieved(
    1. List<RuutMessage>
    )?,
  26. void onMessagesRetrieved(
    1. List<RuutMessage>
    )?,
  27. void onConversationStartedTyping()?,
  28. void onConversationStoppedTyping()?,
  29. void onConversationIsOnline()?,
  30. void onConversationIsOffline()?,
  31. void onError(
    1. RuutClientException
    )?,
  32. bool isPresentedInDialog = false,
  33. void onMessageRead(
    1. RuutMessage
    )?,
})

Implementation

const RuutChatView(
    {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 RuutChatTheme(),
    this.l10n = const RuutChatL10n(),
    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,
    this.onMessageRead})
    : super(key: key);