ChatTextField constructor
const
ChatTextField({
- Key? key,
- required VoidCallback onSend,
- required TextEditingController controller,
- required FocusNode focus,
- ChatInputStyle? style,
required onSend
callback when user sends a message
required controller
for text input
required focus
for text input
Implementation
const ChatTextField(
{super.key,
required this.onSend,
required this.controller,
required this.focus,
ChatInputStyle? style})
: style = style ?? const ChatInputStyle();