ChatView constructor

const ChatView({
  1. Key? key,
  2. required ChatController chatController,
  3. StringMessageCallBack? onSendTap,
  4. ProfileCircleConfiguration? profileCircleConfig,
  5. ChatBubbleConfiguration? chatBubbleConfig,
  6. RepliedMessageConfiguration? repliedMessageConfig,
  7. SwipeToReplyConfiguration? swipeToReplyConfig,
  8. ReplyPopupConfiguration? replyPopupConfig,
  9. ReactionPopupConfiguration? reactionPopupConfig,
  10. VoidCallBackWithFuture? loadMoreData,
  11. Widget? loadingWidget,
  12. MessageConfiguration? messageConfig,
  13. bool? isLastPage,
  14. Widget? appBar,
  15. ChatBackgroundConfiguration? chatBackgroundConfig,
  16. TypeIndicatorConfiguration? typeIndicatorConfig,
  17. ReplyMessageWithReturnWidget? sendMessageBuilder,
  18. SendMessageConfiguration? sendMessageConfig,
  19. VoidCallBack? onChatListTap,
  20. required ChatViewState chatViewState,
  21. ChatViewStateConfiguration? chatViewStateConfig,
  22. FeatureActiveConfig featureActiveConfig = const FeatureActiveConfig(),
  23. Config? emojiPickerSheetConfig,
  24. CustomViewForReplyMessage? replyMessageBuilder,
  25. ReplySuggestionsConfig? replySuggestionsConfig,
  26. 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);