AgentComposer constructor
const
AgentComposer({
- Key? key,
- AgentComposerController? controller,
- FocusNode? focusNode,
- ValueChanged<
String> ? onSubmit, - VoidCallback? onStop,
- bool enabled = true,
- bool autofocus = false,
- String hintText = 'Message',
- String semanticLabel = 'Message',
- Widget? leading,
- Widget? trailing,
- String submitLabel = 'Send',
- String stopLabel = 'Stop',
- AgentGlyphBuilder? glyphBuilder,
- TextFieldStyler fieldStyle = const TextFieldStyler.create(),
- IconButtonStyler submitStyle = const IconButtonStyler.create(),
- IconButtonStyler stopStyle = const IconButtonStyler.create(),
- AgentComposerStyler style = const AgentComposerStyler.create(),
- AgentComposerSpec? styleSpec,
Creates a composer.
Implementation
const AgentComposer({
super.key,
this.controller,
this.focusNode,
this.onSubmit,
this.onStop,
this.enabled = true,
this.autofocus = false,
this.hintText = 'Message',
this.semanticLabel = 'Message',
this.leading,
this.trailing,
this.submitLabel = 'Send',
this.stopLabel = 'Stop',
this.glyphBuilder,
this.fieldStyle = const TextFieldStyler.create(),
this.submitStyle = const IconButtonStyler.create(),
this.stopStyle = const IconButtonStyler.create(),
this.style = const AgentComposerStyler.create(),
this.styleSpec,
});