ChatView constructor
const
ChatView({
- Key? key,
- required ChatController chatController,
- TypeIndicatorConfiguration typeIndicatorConfig = const TypeIndicatorConfiguration(),
- StringMessageCallBack? onSendTap,
- EditMessageCallback? onEditTap,
- ProfileCircleConfiguration? profileCircleConfig,
- ChatBubbleConfiguration? chatBubbleConfig,
- RepliedMessageConfiguration? repliedMessageConfig,
- SwipeToReplyConfiguration? swipeToReplyConfig,
- ReplyPopupConfiguration? replyPopupConfig,
- ReactionPopupConfiguration? reactionPopupConfig,
- PaginationCallback? loadMoreData,
- Widget? loadingWidget,
- MessageConfiguration? messageConfig,
- ValueGetter<
bool> ? isLastPage, - Widget? appBar,
- ChatBackgroundConfiguration? chatBackgroundConfig,
- ReplyMessageWithReturnWidget? sendMessageBuilder,
- VoidCallback? onChatListTap,
- required ChatViewState chatViewState,
- ChatViewStateConfiguration? chatViewStateConfig,
- FeatureActiveConfig featureActiveConfig = const FeatureActiveConfig(),
- SendMessageConfiguration sendMessageConfig = const SendMessageConfiguration(),
- Config? emojiPickerSheetConfig,
- CustomViewForReplyMessage? replyMessageBuilder,
- ReplySuggestionsConfig? replySuggestionsConfig,
- ScrollToBottomButtonConfig? scrollToBottomButtonConfig,
Implementation
const ChatView({
super.key,
required this.chatController,
this.typeIndicatorConfig = const TypeIndicatorConfiguration(),
this.onSendTap,
this.onEditTap,
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.sendMessageBuilder,
this.onChatListTap,
required this.chatViewState,
ChatViewStateConfiguration? chatViewStateConfig,
this.featureActiveConfig = const FeatureActiveConfig(),
this.sendMessageConfig = const SendMessageConfiguration(),
this.emojiPickerSheetConfig,
this.replyMessageBuilder,
this.replySuggestionsConfig,
this.scrollToBottomButtonConfig,
}) : chatBackgroundConfig =
chatBackgroundConfig ?? const ChatBackgroundConfiguration(),
chatViewStateConfig =
chatViewStateConfig ?? const ChatViewStateConfiguration();