MessageBubble constructor

const MessageBubble({
  1. Key? key,
  2. required MessageInfo message,
  3. required String conversationID,
  4. required bool isSelf,
  5. required double maxWidth,
  6. required MessageListConfigProtocol config,
  7. ValueChanged<String>? onLinkTapped,
  8. required MessageListStore messageListStore,
  9. MessageMenuCallbacks? menuCallbacks,
  10. bool isHighlighted = false,
  11. VoidCallback? onHighlightComplete,
  12. List<MessageCustomAction> customActions = const [],
  13. bool isInMergedDetailView = false,
  14. AsrDisplayManager? asrDisplayManager,
  15. void onAsrBubbleLongPress(
    1. MessageInfo message,
    2. GlobalKey<State<StatefulWidget>> asrBubbleKey
    )?,
  16. TranslationDisplayManager? translationDisplayManager,
  17. void onTranslationBubbleLongPress(
    1. MessageInfo message,
    2. GlobalKey<State<StatefulWidget>> translationBubbleKey
    )?,
})

Implementation

const MessageBubble({
  super.key,
  required this.message,
  required this.conversationID,
  required this.isSelf,
  required this.maxWidth,
  required this.config,
  this.onLinkTapped,
  required this.messageListStore,
  this.menuCallbacks,
  this.isHighlighted = false,
  this.onHighlightComplete,
  this.customActions = const [],
  this.isInMergedDetailView = false,
  this.asrDisplayManager,
  this.onAsrBubbleLongPress,
  this.translationDisplayManager,
  this.onTranslationBubbleLongPress,
});