ChatView2 constructor
const
ChatView2({
- Key? key,
- required ChatController chatController,
- required ChatUser currentUser,
- String local = "en",
- StringMessageCallBack? onSendTap,
- ProfileCircleConfiguration? profileCircleConfig,
- ChatBubbleConfiguration? chatBubbleConfig,
- RepliedMessageConfiguration? repliedMessageConfig,
- SwipeToReplyConfiguration? swipeToReplyConfig,
- ReplyPopupConfiguration? replyPopupConfig,
- ReactionPopupConfiguration? reactionPopupConfig,
- VoidCallBackWithFuture? loadMoreData,
- Widget? loadingWidget,
- MessageConfiguration? messageConfig,
- bool? isLastPage,
- Widget? appBar,
- ChatBackgroundConfiguration? chatBackgroundConfig,
- TypeIndicatorConfiguration? typeIndicatorConfig,
- ReplyMessageWithReturnWidget? sendMessageBuilder,
- bool showTypingIndicator = false,
- SendMessageConfiguration? sendMessageConfig,
- VoidCallBack? onChatListTap,
- required ChatView2State chatview2State,
- Chatview2StateConfiguration? chatview2StateConfig,
- FeatureActiveConfig featureActiveConfig = const FeatureActiveConfig(),
Implementation
const ChatView2({
super.key,
required this.chatController,
required this.currentUser,
this.local = "en",
this.onSendTap,
this.profileCircleConfig,
this.chatBubbleConfig,
this.repliedMessageConfig,
this.swipeToReplyConfig,
this.replyPopupConfig,
this.reactionPopupConfig,
this.loadMoreData,
this.loadingWidget,
this.messageConfig,
this.isLastPage,
this.appBar,
ChatBackgroundConfiguration? chatBackgroundConfig,
this.typeIndicatorConfig,
this.sendMessageBuilder,
this.showTypingIndicator = false,
this.sendMessageConfig,
this.onChatListTap,
required this.chatview2State,
Chatview2StateConfiguration? chatview2StateConfig,
this.featureActiveConfig = const FeatureActiveConfig(),
}) : chatBackgroundConfig =
chatBackgroundConfig ?? const ChatBackgroundConfiguration(),
chatview2StateConfig =
chatview2StateConfig ?? const Chatview2StateConfiguration();