AiPromptInput constructor

const AiPromptInput({
  1. Key? key,
  2. required UseChatController controller,
  3. String hintText = 'Message',
  4. Future<List<FilePart>> onPickAttachment()?,
  5. VoidCallback? onVoice,
  6. VoidCallback? onLive,
  7. TextEditingController? textController,
  8. FocusNode? focusNode,
})

Creates a prompt input bound to controller.

Implementation

const AiPromptInput({
  super.key,
  required this.controller,
  this.hintText = 'Message',
  this.onPickAttachment,
  this.onVoice,
  this.onLive,
  this.textController,
  this.focusNode,
});