MessageItem constructor
const
MessageItem({
- Key? key,
- required MessageInfo message,
- required String conversationID,
- bool isGroup = false,
- double maxWidth = 200,
- required MessageListStore messageListStore,
- required bool isHighlighted,
- VoidCallback? onHighlightComplete,
- OnUserClick? onUserClick,
- OnUserLongPress? onUserLongPress,
- List<
MessageCustomAction> customActions = const [], - required MessageListConfigProtocol config,
- bool isMultiSelectMode = false,
- bool isSelected = false,
- VoidCallback? onToggleSelection,
- VoidCallback? onEnterMultiSelectMode,
- bool isInMergedDetailView = false,
- AsrDisplayManager? asrDisplayManager,
- void onAsrBubbleLongPress(
- MessageInfo message,
- GlobalKey<
State< asrBubbleKeyStatefulWidget> >
- TranslationDisplayManager? translationDisplayManager,
- void onTranslationBubbleLongPress(
- MessageInfo message,
- GlobalKey<
State< translationBubbleKeyStatefulWidget> >
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,
});