ChatInputWidget constructor

const ChatInputWidget({
  1. Key? key,
  2. required dynamic onMessageSent(
    1. String
    ),
  3. bool isLoading = false,
})

Creates a new chat input widget.

The onMessageSent callback is required and will be called when a message is submitted. The isLoading parameter controls the loading state display.

Implementation

const ChatInputWidget({
  super.key,
  required this.onMessageSent,
  this.isLoading = false,
});