ChatView2 constructor

const ChatView2({
  1. Key? key,
  2. required ChatController chatController,
  3. required ChatUser currentUser,
  4. String local = "en",
  5. StringMessageCallBack? onSendTap,
  6. ProfileCircleConfiguration? profileCircleConfig,
  7. ChatBubbleConfiguration? chatBubbleConfig,
  8. RepliedMessageConfiguration? repliedMessageConfig,
  9. SwipeToReplyConfiguration? swipeToReplyConfig,
  10. ReplyPopupConfiguration? replyPopupConfig,
  11. ReactionPopupConfiguration? reactionPopupConfig,
  12. VoidCallBackWithFuture? loadMoreData,
  13. Widget? loadingWidget,
  14. MessageConfiguration? messageConfig,
  15. bool? isLastPage,
  16. Widget? appBar,
  17. ChatBackgroundConfiguration? chatBackgroundConfig,
  18. TypeIndicatorConfiguration? typeIndicatorConfig,
  19. ReplyMessageWithReturnWidget? sendMessageBuilder,
  20. bool showTypingIndicator = false,
  21. SendMessageConfiguration? sendMessageConfig,
  22. VoidCallBack? onChatListTap,
  23. required ChatView2State chatview2State,
  24. Chatview2StateConfiguration? chatview2StateConfig,
  25. 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();