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
    )?,
  7. Future<bool> onDeleteFailedMessage(
    1. Message
    )?,
})

Creates a chat view.

Implementation

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