ChatThreadMessageView constructor

const ChatThreadMessageView({
  1. Key? key,
  2. RoomClient? room,
  3. required bool mine,
  4. required bool isAgentMessage,
  5. required String? text,
  6. required String authorName,
  7. required DateTime createdAt,
  8. bool shouldShowHeader = true,
  9. Widget? header,
  10. List<Widget> attachmentWidgets = const [],
  11. Widget? trailing,
  12. VoidCallback? onDelete,
  13. Widget reactionActionBuilder(
    1. ShadContextMenuController controller
    )?,
  14. bool showReactionAction = false,
  15. VoidCallback? onReactFromMenu,
  16. ThreadStorageSaveSurfacePresenter? mobileStorageSaveSurfacePresenter,
  17. Color? bubbleColor,
  18. Color? bubbleBorderColor,
  19. bool useDefaultBubbleBorder = true,
  20. Color? textColor,
  21. bool selectable = true,
  22. bool showBubbleActions = true,
  23. VoidCallback? onTap,
})

Implementation

const ChatThreadMessageView({
  super.key,
  this.room,
  required this.mine,
  required this.isAgentMessage,
  required this.text,
  required this.authorName,
  required this.createdAt,
  this.shouldShowHeader = true,
  this.header,
  this.attachmentWidgets = const [],
  this.trailing,
  this.onDelete,
  this.reactionActionBuilder,
  this.showReactionAction = false,
  this.onReactFromMenu,
  this.mobileStorageSaveSurfacePresenter,
  this.bubbleColor,
  this.bubbleBorderColor,
  this.useDefaultBubbleBorder = true,
  this.textColor,
  this.selectable = true,
  this.showBubbleActions = true,
  this.onTap,
});