MessageItem constructor

const MessageItem({
  1. Key? key,
  2. required MessageInfo message,
  3. required String conversationID,
  4. bool isGroup = false,
  5. double maxWidth = 200,
  6. required MessageListStore messageListStore,
  7. required bool isHighlighted,
  8. VoidCallback? onHighlightComplete,
  9. OnUserClick? onUserClick,
  10. OnUserLongPress? onUserLongPress,
  11. List<MessageCustomAction> customActions = const [],
  12. required MessageListConfigProtocol config,
  13. bool isMultiSelectMode = false,
  14. bool isSelected = false,
  15. VoidCallback? onToggleSelection,
  16. VoidCallback? onEnterMultiSelectMode,
  17. bool isInMergedDetailView = false,
  18. AsrDisplayManager? asrDisplayManager,
  19. void onAsrBubbleLongPress(
    1. MessageInfo message,
    2. GlobalKey<State<StatefulWidget>> asrBubbleKey
    )?,
  20. TranslationDisplayManager? translationDisplayManager,
  21. void onTranslationBubbleLongPress(
    1. MessageInfo message,
    2. GlobalKey<State<StatefulWidget>> translationBubbleKey
    )?,
})

Implementation

const MessageItem({
  super.key,
  required this.message,
  required this.conversationID,
  this.isGroup = false,
  this.maxWidth = 200,
  required this.messageListStore,
  required this.isHighlighted,
  this.onHighlightComplete,
  this.onUserClick,
  this.onUserLongPress,
  this.customActions = const [],
  required this.config,
  this.isMultiSelectMode = false,
  this.isSelected = false,
  this.onToggleSelection,
  this.onEnterMultiSelectMode,
  this.isInMergedDetailView = false,
  this.asrDisplayManager,
  this.onAsrBubbleLongPress,
  this.translationDisplayManager,
  this.onTranslationBubbleLongPress,
});