ChatView constructor
const
ChatView({
- Key? key,
- required ChatService service,
- required String chatId,
- required String currentUserId,
- required ChatConfig config,
- ChatTheme? theme,
- ChatTextStyle? textStyle,
- ChatAppActions? appActions,
- Widget messageBuilder(
- BuildContext,
- ChatMessage,
- void (
- String messageId
- Widget replyPreviewBuilder(
- BuildContext,
- ChatMessage,
- void (
- String messageId
- bool enableReply = true,
- bool listenUnreadCount = true,
- InputDecoration? inputDecoration,
- Widget? sendIcon,
- VoidCallback? onMessageSent,
- VoidCallback? onError,
- void onReplyPreviewTap(
- String messageId
- Widget loadingBuilder()?,
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,
});