ChatThreadInputConfig constructor
const
ChatThreadInputConfig({
- required ChatThreadController controller,
- required ChatThreadSnapshot snapshot,
- required Widget? placeholder,
- required bool sendEnabled,
- required String? sendDisabledReason,
- required bool readOnly,
- required Future<
void> onSend(), - void onChanged()?,
- VoidCallback? onClear,
- VoidCallback? onInterrupt,
- VoidCallback? onCancelSend,
- String? sendPendingText,
- 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(})?, - EditableTextContextMenuBuilder? contextMenuBuilder,
- TapRegionCallback? onPressedOutside,
- Object? tapRegionGroupId,
- RoomClient? room,
Implementation
const ChatThreadInputConfig({
required this.controller,
required this.snapshot,
required this.placeholder,
required this.sendEnabled,
required this.sendDisabledReason,
required this.readOnly,
required this.onSend,
this.onChanged,
this.onClear,
this.onInterrupt,
this.onCancelSend,
this.sendPendingText,
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.contextMenuBuilder,
this.onPressedOutside,
this.tapRegionGroupId,
this.room,
});