MultiThreadView constructor

const MultiThreadView({
  1. Key? key,
  2. required RoomClient room,
  3. BaseChatClient? chatClient,
  4. bool disposeChatClient = false,
  5. required String agentName,
  6. required MultiThreadContentBuilder builder,
  7. ChatThreadController? controller,
  8. String toolkit = "chat",
  9. String tool = "new_thread",
  10. NewChatThreadToolsBuilder? toolsBuilder,
  11. String? selectedThreadPath,
  12. ValueChanged<String?>? onSelectedThreadPathChanged,
  13. void onSelectedThreadResolved(
    1. String? path,
    2. String? displayName
    )?,
  14. int newThreadResetVersion = 0,
  15. bool centerComposer = true,
  16. bool showCenteredComposerTitle = true,
  17. bool showUsageFooter = false,
  18. Widget? emptyState,
  19. Widget? inputPlaceholder,
  20. EditableTextContextMenuBuilder? inputContextMenuBuilder,
  21. TapRegionCallback? inputOnPressedOutside,
  22. ValueChanged<FileAttachment>? onAttachmentOpen,
  23. ValueChanged<FileAttachment>? onAttachmentRemoved,
  24. FileDropOverlayBuilder? fileDropOverlayBuilder,
  25. DatasetChatModelController? modelController,
  26. ChatThreadCustomInputBuilder? customInputBuilder,
  27. 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,
});