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? footerView(
    1. BuildContext, {
    2. Group? group,
    3. int? parentMessageId,
    4. User? user,
    })?,
  29. String dateSeparatorPattern(
    1. DateTime
    )?,
  30. OnError? onError,
  31. CometChatTheme? theme,
  32. bool? disableReceipt = false,
  33. MessageInformationConfiguration? messageInformationConfiguration,
  34. DateStyle? dateSeparatorStyle,
  35. ReactionListConfiguration? reactionListConfiguration,
  36. bool? disableReactions,
  37. List<String>? favoriteReactions,
  38. ReactionsStyle? reactionsStyle,
  39. Widget? addReactionIcon,
  40. dynamic addReactionIconTap(
    1. BaseMessage
    )?,
  41. EmojiKeyboardStyle? emojiKeyboardStyle,
  42. List<CometChatTextFormatter>? textFormatters,
  43. bool? disableMentions,
  44. 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.footerView,
  this.dateSeparatorPattern,
  this.onError,
  this.theme,
  this.disableReceipt = false,
  this.messageInformationConfiguration,
  this.dateSeparatorStyle,
  this.reactionListConfiguration,
  this.disableReactions,
  this.favoriteReactions,
  this.reactionsStyle,
  this.addReactionIcon,
  this.addReactionIconTap,
  this.emojiKeyboardStyle,
  this.textFormatters,
  this.disableMentions,
  this.reactionsConfiguration,
});