MessagesView constructor

const MessagesView({
  1. required ChatUIKitProfile profile,
  2. ChatUIKitAppBarModel? appBarModel,
  3. bool enableAppBar = true,
  4. Widget? inputBar,
  5. MessagesViewController? controller,
  6. MessageItemShowHandler? showMessageItemAvatar,
  7. MessageItemShowHandler? showMessageItemNickname,
  8. MessageItemGlobalPositionTapHandler? onItemTap,
  9. MessagesViewItemLongPressPositionHandler? onItemLongPressHandler,
  10. MessageItemGlobalPositionTapHandler? onDoubleTap,
  11. MessageItemTapHandler? onAvatarTap,
  12. MessageItemTapHandler? onAvatarLongPress,
  13. MessageItemTapHandler? onNicknameTap,
  14. Widget? emojiWidget,
  15. MessageItemBuilder? itemBuilder,
  16. MessageItemBuilder? alertItemBuilder,
  17. List<ChatUIKitEventAction>? morePressActions,
  18. MessagesViewMorePressHandler? onMoreActionsItemsHandler,
  19. Widget? replyBarBuilder(
    1. BuildContext context,
    2. MessageModel replyMessage
    )?,
  20. Widget quoteBuilder(
    1. BuildContext context,
    2. QuoteModel model
    )?,
  21. MessageItemTapHandler? onErrorBtnTapHandler,
  22. MessageItemBubbleBuilder? bubbleBuilder,
  23. MessageItemBuilder? bubbleContentBuilder,
  24. bool? forceLeft,
  25. ChatUIKitKeyboardPanelController? inputController,
  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,
  35. Key? key,
})

构造函数。

Implementation

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