MessageListConfiguration constructor

const MessageListConfiguration({
  1. MessagesRequestBuilder? messagesRequestBuilder,
  2. MessageListStyle? messageListStyle,
  3. ScrollController? controller,
  4. String? emptyStateText,
  5. String? errorStateText,
  6. WidgetBuilder? loadingStateView,
  7. WidgetBuilder? emptyStateView,
  8. WidgetBuilder? errorStateView,
  9. bool? hideError,
  10. AvatarStyle? avatarStyle,
  11. bool? disableSoundForMessages,
  12. String? customSoundForMessages,
  13. String? customSoundForMessagePackage,
  14. Widget? readIcon,
  15. Widget? deliveredIcon,
  16. Widget? sentIcon,
  17. Widget? waitIcon,
  18. ChatAlignment? alignment,
  19. bool? showAvatar,
  20. String datePattern(
    1. BaseMessage message
    )?,
  21. bool? hideTimestamp,
  22. TimeAlignment? timestampAlignment,
  23. List<CometChatMessageTemplate>? templates,
  24. String? newMessageIndicatorText,
  25. bool? scrollToBottomOnNewMessages,
  26. ThreadRepliesClick? onThreadRepliesClick,
  27. Widget? headerView(
    1. BuildContext, {
    2. Group? group,
    3. int? parentMessageId,
    4. User? user,
    })?,
  28. Widget? messageBubble({
    1. String alignment,
    2. bool hideFooterView,
    3. BaseMessage messageObject,
    4. Future onMessageLongPress()?,
    5. Future onReactionLongPress()?,
    6. Future onReactionTap(
      1. String? reaction
      )?,
    7. Future viewThreadReplies(
      1. String? parentMessageId
      )?,
    })?,
  29. Widget? footerView(
    1. BuildContext, {
    2. Group? group,
    3. int? parentMessageId,
    4. User? user,
    })?,
  30. String dateSeparatorPattern(
    1. DateTime
    )?,
  31. OnError? onError,
  32. CometChatTheme? theme,
  33. bool? disableReceipt,
  34. bool? hideReceipt,
  35. MessageInformationConfiguration? messageInformationConfiguration,
  36. DateStyle? dateSeparatorStyle,
  37. ReactionListConfiguration? reactionListConfiguration,
  38. bool? disableReactions,
  39. List<String>? favoriteReactions,
  40. ReactionsStyle? reactionsStyle,
  41. Widget? addReactionIcon,
  42. dynamic addReactionIconTap(
    1. BaseMessage
    )?,
  43. EmojiKeyboardStyle? emojiKeyboardStyle,
  44. List<CometChatTextFormatter>? textFormatters,
  45. bool? disableMentions,
  46. ReactionsConfiguration? reactionsConfiguration,
})

Implementation

const MessageListConfiguration({
  this.messagesRequestBuilder,
  this.messageListStyle,
  this.controller,
  this.emptyStateText,
  this.errorStateText,
  this.loadingStateView,
  this.emptyStateView,
  this.errorStateView,
  this.hideError,
  this.avatarStyle,
  this.disableSoundForMessages,
  this.customSoundForMessages,
  this.customSoundForMessagePackage,
  this.readIcon,
  this.deliveredIcon,
  this.sentIcon,
  this.waitIcon,
  this.alignment,
  this.showAvatar,
  this.datePattern,
  this.hideTimestamp,
  this.timestampAlignment,
  this.templates,
  this.newMessageIndicatorText,
  this.scrollToBottomOnNewMessages,
  this.onThreadRepliesClick,
  this.headerView,
  this.messageBubble,
  this.footerView,
  this.dateSeparatorPattern,
  this.onError,
  this.theme,
  this.disableReceipt,
  this.hideReceipt,
  this.messageInformationConfiguration,
  this.dateSeparatorStyle,
  this.reactionListConfiguration,
  this.disableReactions,
  this.favoriteReactions,
  this.reactionsStyle,
  this.addReactionIcon,
  this.addReactionIconTap,
  this.emojiKeyboardStyle,
  this.textFormatters,
  this.disableMentions,
  this.reactionsConfiguration,
});