MultiThreadView constructor
const
MultiThreadView({
- Key? key,
- required RoomClient room,
- BaseChatClient? chatClient,
- bool disposeChatClient = false,
- required String agentName,
- required MultiThreadContentBuilder builder,
- ChatThreadController? controller,
- String toolkit = "chat",
- String tool = "new_thread",
- NewChatThreadToolsBuilder? toolsBuilder,
- String? selectedThreadPath,
- ValueChanged<
String?> ? onSelectedThreadPathChanged, - void onSelectedThreadResolved()?,
- int newThreadResetVersion = 0,
- bool centerComposer = true,
- bool showCenteredComposerTitle = true,
- Widget? emptyState,
- Widget? inputPlaceholder,
- EditableTextContextMenuBuilder? inputContextMenuBuilder,
- TapRegionCallback? inputOnPressedOutside,
- ValueChanged<
FileAttachment> ? onAttachmentOpen, - ValueChanged<
FileAttachment> ? onAttachmentRemoved, - FileDropOverlayBuilder? fileDropOverlayBuilder,
- DatasetChatModelController? modelController,
- ChatThreadCustomInputBuilder? customInputBuilder,
- NewChatThreadWrapperBuilder? newThreadWrapperBuilder,
Implementation
const MultiThreadView({
super.key,
required this.room,
this.chatClient,
this.disposeChatClient = false,
required this.agentName,
required this.builder,
this.controller,
this.toolkit = "chat",
this.tool = "new_thread",
this.toolsBuilder,
this.selectedThreadPath,
this.onSelectedThreadPathChanged,
this.onSelectedThreadResolved,
this.newThreadResetVersion = 0,
this.centerComposer = true,
this.showCenteredComposerTitle = true,
this.showUsageFooter = false,
this.emptyState,
this.inputPlaceholder,
this.inputContextMenuBuilder,
this.inputOnPressedOutside,
this.onAttachmentOpen,
this.onAttachmentRemoved,
this.fileDropOverlayBuilder,
this.modelController,
this.customInputBuilder,
this.newThreadWrapperBuilder,
});