Chat constructor

const Chat({
  1. Key? key,
  2. bool readOnly = false,
  3. ChatController? chatController,
  4. ChatConfiguration configuration = const ChatConfiguration(),
  5. Future<void> onScrollToTop()?,
  6. Widget customInputField(
    1. BuildContext,
    2. ChatController
    )?,
})

Creates a new Chat widget.

The configuration parameter allows customization of the chat appearance and behavior. If chatController is not provided, a default controller will be created.

Implementation

const Chat(
    {super.key,
    this.readOnly = false,
    this.chatController,
    this.configuration = const ChatConfiguration(),
    this.onScrollToTop,
    this.customInputField});