MessagesViewArguments constructor

MessagesViewArguments({
  1. required ChatUIKitProfile profile,
  2. MessagesViewController? controller,
  3. ChatUIKitAppBarModel? appBarModel,
  4. Widget? inputBar,
  5. MessageItemShowHandler? showMessageItemAvatar,
  6. MessageItemShowHandler? showMessageItemNickname,
  7. MessageItemGlobalPositionTapHandler? onItemTap,
  8. MessageItemGlobalPositionTapHandler? onDoubleTap,
  9. MessageItemTapHandler? onAvatarTap,
  10. MessageItemTapHandler? onAvatarLongPress,
  11. MessageItemTapHandler? onNicknameTap,
  12. Widget? emojiWidget,
  13. MessageItemBuilder? itemBuilder,
  14. MessageItemBuilder? alertItemBuilder,
  15. List<ChatUIKitEventAction>? morePressActions,
  16. Widget? replyBarBuilder(
    1. BuildContext context,
    2. MessageModel replyMessage
    )?,
  17. Widget quoteBuilder(
    1. BuildContext context,
    2. QuoteModel model
    )?,
  18. MessageItemTapHandler? onErrorBtnTapHandler,
  19. MessageItemBubbleBuilder? bubbleBuilder,
  20. bool enableAppBar = true,
  21. MessageItemBuilder? bubbleContentBuilder,
  22. MessagesViewMorePressHandler? onMoreActionsItemsHandler,
  23. MessagesViewItemLongPressPositionHandler? onItemLongPressHandler,
  24. ChatUIKitKeyboardPanelController? inputController,
  25. bool? forceLeft,
  26. Widget? multiSelectBottomBar,
  27. ChatUIKitViewObserver? viewObserver,
  28. String? attributes,
  29. MessageReactionItemTapHandler? onReactionItemTap,
  30. MessageItemTapHandler? onReactionInfoTap,
  31. MessageItemBuilder? reactionItemsBuilder,
  32. MessageItemTapHandler? onThreadItemTap,
  33. MessageItemBuilder? threadItemBuilder,
  34. Widget? backgroundWidget,
})

Implementation

MessagesViewArguments({
  required this.profile,
  this.controller,
  ChatUIKitAppBarModel? appBarModel,
  this.inputBar,
  this.showMessageItemAvatar,
  this.showMessageItemNickname,
  this.onItemTap,
  this.onDoubleTap,
  this.onAvatarTap,
  this.onAvatarLongPress,
  this.onNicknameTap,
  this.emojiWidget,
  this.itemBuilder,
  this.alertItemBuilder,
  this.morePressActions,
  this.replyBarBuilder,
  this.quoteBuilder,
  this.onErrorBtnTapHandler,
  this.bubbleBuilder,
  this.enableAppBar = true,
  this.bubbleContentBuilder,
  this.onMoreActionsItemsHandler,
  this.onItemLongPressHandler,
  this.inputController,
  this.forceLeft,
  this.multiSelectBottomBar,
  this.viewObserver,
  this.attributes,
  this.onReactionItemTap,
  this.onReactionInfoTap,
  this.reactionItemsBuilder,
  this.onThreadItemTap,
  this.threadItemBuilder,
  this.backgroundWidget,
}) {
  this.appBarModel = appBarModel ?? ChatUIKitAppBarModel(centerTitle: false);
}