ChatTextField constructor

const ChatTextField({
  1. Key? key,
  2. required VoidCallback onSend,
  3. required TextEditingController controller,
  4. required FocusNode focus,
  5. 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();