ChatView constructor
const
ChatView({
- Key? key,
- required ChatController chatController,
- 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,
- SendMessageConfiguration? sendMessageConfig,
- VoidCallBack? onChatListTap,
- required ChatViewState chatViewState,
- ChatViewStateConfiguration? chatViewStateConfig,
- FeatureActiveConfig featureActiveConfig = const FeatureActiveConfig(),
- Config? emojiPickerSheetConfig,
- CustomViewForReplyMessage? replyMessageBuilder,
- ReplySuggestionsConfig? replySuggestionsConfig,
- ScrollToBottomButtonConfig? scrollToBottomButtonConfig,
Implementation
const ChatView({
Key? key,
required this.chatController,
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.sendMessageConfig,
this.onChatListTap,
required this.chatViewState,
ChatViewStateConfiguration? chatViewStateConfig,
this.featureActiveConfig = const FeatureActiveConfig(),
this.emojiPickerSheetConfig,
this.replyMessageBuilder,
this.replySuggestionsConfig,
this.scrollToBottomButtonConfig,
}) : chatBackgroundConfig =
chatBackgroundConfig ?? const ChatBackgroundConfiguration(),
chatViewStateConfig =
chatViewStateConfig ?? const ChatViewStateConfiguration(),
super(key: key);