ChatThread constructor

const ChatThread({
  1. Key? key,
  2. required String path,
  3. required MeshDocument document,
  4. required RoomClient room,
  5. bool startChatCentered = false,
  6. ChatMessage? initialMessage,
  7. void onMessageSent(
    1. ChatMessage message
    )?,
  8. ChatThreadController? controller,
  9. Widget messageHeaderBuilder(
    1. BuildContext,
    2. MeshDocument,
    3. MeshElement
    )?,
  10. Widget waitingForParticipantsBuilder(
    1. BuildContext,
    2. List<String>
    )?,
  11. Widget attachmentBuilder(
    1. BuildContext context,
    2. FileAttachment upload
    )?,
  12. Widget fileInThreadBuilder(
    1. BuildContext context,
    2. String path
    )?,
  13. Widget toolsBuilder(
    1. BuildContext,
    2. ChatThreadController,
    3. ChatThreadSnapshot
    )?,
  14. String? agentName,
})

Implementation

const ChatThread({
  super.key,
  required this.path,
  required this.document,
  required this.room,

  this.startChatCentered = false,
  this.initialMessage,
  this.onMessageSent,
  this.controller,

  this.messageHeaderBuilder,
  this.waitingForParticipantsBuilder,
  this.attachmentBuilder,
  this.fileInThreadBuilder,
  this.toolsBuilder,

  this.agentName,
});