ChatView constructor

const ChatView({
  1. Key? key,
  2. required ChatService service,
  3. required String chatId,
  4. required String currentUserId,
  5. required ChatConfig config,
  6. ChatTheme? theme,
  7. ChatTextStyle? textStyle,
  8. ChatAppActions? appActions,
  9. Widget messageBuilder(
    1. BuildContext,
    2. ChatMessage,
    3. void (
      1. String messageId
      )
    )?,
  10. Widget replyPreviewBuilder(
    1. BuildContext,
    2. ChatMessage,
    3. void (
      1. String messageId
      )
    )?,
  11. bool enableReply = true,
  12. bool listenUnreadCount = true,
  13. InputDecoration? inputDecoration,
  14. Widget? sendIcon,
  15. VoidCallback? onMessageSent,
  16. VoidCallback? onError,
  17. void onReplyPreviewTap(
    1. String messageId
    )?,
  18. Widget loadingBuilder(
    1. BuildContext
    )?,
})

Creates a new ChatView.

Implementation

const ChatView({
  super.key,
  required this.service,
  required this.chatId,
  required this.currentUserId,
  required this.config,
  this.theme,
  this.textStyle,
  this.appActions,
  this.messageBuilder,
  this.replyPreviewBuilder,
  this.enableReply = true,
  this.listenUnreadCount = true,
  this.inputDecoration,
  this.sendIcon,
  this.onMessageSent,
  this.onError,
  this.onReplyPreviewTap,
  this.loadingBuilder,
});