ChatView constructor

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