ChatThread constructor

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

Implementation

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

  this.startChatCentered = false,
  this.participantNameBuilder,

  this.initialMessage,

  this.onMessageSent,
  this.controller,
  this.waitingForParticipantsBuilder,
  this.attachmentBuilder,
  this.fileInThreadBuilder,
  this.inputLeadingBuilder,
});