ChatThreadInput constructor
const
ChatThreadInput({
- Key? key,
- required Future<
void> onSend(), - required ChatThreadController controller,
- RoomClient? room,
- bool autoFocus = true,
- Object? focusTrigger,
- bool sendEnabled = true,
- String? sendDisabledReason,
- bool readOnly = false,
- bool clearOnSend = true,
- Widget? placeholder,
- void onChanged()?,
- Widget attachmentBuilder(
- BuildContext context,
- FileAttachment upload
- ValueChanged<
FileAttachment> ? onAttachmentOpen, - ValueChanged<
FileAttachment> ? onAttachmentRemoved, - Future<
void> onFileDrop()?, - Widget? leading,
- Widget? trailing,
- Widget? header,
- bool audioInputEnabled = false,
- bool automaticAudioTurnDetection = false,
- Future<
void> onAudioRecordingStart()?, - Future<
void> onExternalAudioRecordingStart()?, - Future<
void> onExternalAudioRecordingStop()?, - Future<
void> onAudioChunk(})?, - void onClear()?,
- void onInterrupt()?,
- void onCancelSend()?,
- String? sendPendingText,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- TapRegionCallback? onPressedOutside,
- Object? tapRegionGroupId,
Implementation
const ChatThreadInput({
super.key,
required this.onSend,
required this.controller,
this.room,
this.autoFocus = true,
this.focusTrigger,
this.sendEnabled = true,
this.sendDisabledReason,
this.readOnly = false,
this.clearOnSend = true,
this.placeholder,
this.onChanged,
this.attachmentBuilder,
this.onAttachmentOpen,
this.onAttachmentRemoved,
this.onFileDrop,
this.leading,
this.trailing,
this.header,
this.footer,
this.audioInputEnabled = false,
this.automaticAudioTurnDetection = false,
this.onAudioRecordingStart,
this.onExternalAudioRecordingStart,
this.onExternalAudioRecordingStop,
this.onAudioChunk,
this.onClear,
this.onInterrupt,
this.onCancelSend,
this.sendPendingText,
this.contextMenuBuilder,
this.onPressedOutside,
this.tapRegionGroupId,
});