ChatThread constructor
const
ChatThread({
- Key? key,
- required String path,
- required RoomClient room,
- GlobalKey<
State< ? composerKey,StatefulWidget> > - List<
Participant> ? participants, - List<
String> ? participantNames, - bool includeLocalParticipant = true,
- bool startChatCentered = false,
- ChatMessage? initialMessage,
- void onMessageSent()?,
- ChatThreadController? controller,
- Widget messageHeaderBuilder(
- BuildContext,
- MeshDocument,
- MeshElement
- Widget waitingForParticipantsBuilder()?,
- Widget attachmentBuilder(
- BuildContext context,
- FileAttachment upload
- ValueChanged<
FileAttachment> ? onAttachmentOpen, - ValueChanged<
FileAttachment> ? onAttachmentRemoved, - Widget fileInThreadBuilder(
- BuildContext context,
- String path
- Widget chatInputBoxBuilder(
- BuildContext context,
- Widget chatBox
- ChatThreadCustomInputBuilder? customInputBuilder,
- FutureOr<
void> openFile(- String path
- FileDropOverlayBuilder? fileDropOverlayBuilder,
- Widget toolsBuilder()?,
- Widget? inputPlaceholder,
- String? emptyStateTitle,
- String? emptyStateDescription,
- Widget? emptyState,
- String? agentName,
- FutureOr<
void> onVisibleMessagesEmpty()?, - bool initialShowCompletedToolCalls = false,
- bool shouldShowAuthorNames = true,
- EditableTextContextMenuBuilder? inputContextMenuBuilder,
- TapRegionCallback? inputOnPressedOutside,
- ThreadStorageSaveSurfacePresenter? mobileStorageSaveSurfacePresenter,
- double? mobileUnderHeaderContentPadding,
Implementation
const ChatThread({
super.key,
required this.path,
required this.room,
this.composerKey,
this.participants,
this.participantNames,
this.includeLocalParticipant = true,
this.startChatCentered = false,
this.initialMessage,
this.onMessageSent,
this.controller,
this.messageHeaderBuilder,
this.waitingForParticipantsBuilder,
this.attachmentBuilder,
this.onAttachmentOpen,
this.onAttachmentRemoved,
this.fileInThreadBuilder,
this.chatInputBoxBuilder,
this.customInputBuilder,
this.openFile,
this.fileDropOverlayBuilder,
this.toolsBuilder,
this.inputPlaceholder,
this.emptyStateTitle,
this.emptyStateDescription,
this.emptyState,
this.agentName,
this.onVisibleMessagesEmpty,
this.initialShowCompletedToolCalls = false,
this.shouldShowAuthorNames = true,
this.showUsageFooter = false,
this.inputContextMenuBuilder,
this.inputOnPressedOutside,
this.mobileStorageSaveSurfacePresenter,
this.mobileUnderHeaderContentPadding,
});