ChatThreadMessageView constructor
const
ChatThreadMessageView({
- Key? key,
- RoomClient? room,
- required bool mine,
- required bool isAgentMessage,
- required String? text,
- required String authorName,
- required DateTime createdAt,
- bool shouldShowHeader = true,
- Widget? header,
- List<
Widget> attachmentWidgets = const [], - Widget? trailing,
- VoidCallback? onDelete,
- Widget reactionActionBuilder(
- ShadContextMenuController controller
- bool showReactionAction = false,
- VoidCallback? onReactFromMenu,
- ThreadStorageSaveSurfacePresenter? mobileStorageSaveSurfacePresenter,
- Color? bubbleColor,
- Color? bubbleBorderColor,
- bool useDefaultBubbleBorder = true,
- Color? textColor,
- bool selectable = true,
- bool showBubbleActions = true,
- 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,
});