PrismPromptComposer constructor

const PrismPromptComposer({
  1. Key? key,
  2. required ValueChanged<String> onSend,
  3. List<String> suggestions = const [],
  4. bool busy = false,
  5. String hint = 'Ask anything…',
  6. String sendTooltip = 'Send message',
  7. int maxLines = 5,
  8. TextEditingController? controller,
  9. ValueChanged<String>? onSuggestionTap,
})

Creates a prompt composer.

Implementation

const PrismPromptComposer({
  super.key,
  required this.onSend,
  this.suggestions = const [],
  this.busy = false,
  this.hint = 'Ask anything…',
  this.sendTooltip = 'Send message',
  this.maxLines = 5,
  this.controller,
  this.onSuggestionTap,
});