ThreadMessagesViewArguments class
- Implemented types
Constructors
-
ThreadMessagesViewArguments({Widget? inputBar, MessageItemShowHandler? showMessageItemAvatar, MessageItemShowHandler? showMessageItemNickname, MessageItemGlobalPositionTapHandler? onItemTap, MessageItemGlobalPositionTapHandler? onItemLongPress, MessageItemGlobalPositionTapHandler? onDoubleTap, MessageItemTapHandler? onAvatarTap, MessageItemTapHandler? onAvatarLongPress, MessageItemTapHandler? onNicknameTap, MessageItemBuilder? itemBuilder, MessageItemBuilder? alertItemBuilder, MessageItemTapHandler? onErrorBtnTapHandler, MessageItemBubbleBuilder? bubbleBuilder, MessageItemBuilder? bubbleContentBuilder, Widget? multiSelectBottomBar, MessageReactionItemTapHandler? onReactionItemTap, MessageItemTapHandler? onReactionInfoTap, MessageItemBuilder? reactionItemsBuilder, required ThreadMessagesViewController controller, String? attributes, ChatUIKitViewObserver? viewObserver, ChatUIKitAppBarModel? appBarModel, bool enableAppBar = true, ChatUIKitKeyboardPanelController? inputController, List<
ChatUIKitEventAction> ? morePressActions, MessagesViewMorePressHandler? onMoreActionsItemsHandler, List<ChatUIKitEventAction> ? longPressActions, MessagesViewItemLongPressPositionHandler? onItemLongPressHandler, bool? forceLeft, Widget? emojiWidget, MessageItemBuilder? replyBarBuilder, Widget quoteBuilder(BuildContext context, QuoteModel model)?, ChatUIKitMoreActionsBuilder? rightTopMoreActionsBuilder})
Properties
- alertItemBuilder → MessageItemBuilder?
-
提示消息构建器, 如果设置后需要显示提示消息时会直接回调,如果不处理可以返回
null
。final - appBarModel → ChatUIKitAppBarModel?
-
final
- attributes ↔ String?
-
getter/setter pairoverride
- bubbleBuilder → MessageItemBubbleBuilder?
-
气泡构建器,如果设置后将会替换默认的气泡构建器。详细参考 MessageItemBubbleBuilder。
final
- bubbleContentBuilder → MessageItemBuilder?
-
气泡内容构建器,如果设置后将会替换默认的气泡内容构建器。详细参考 MessageItemBuilder。
final
- controller → ThreadMessagesViewController
-
final
- emojiWidget → Widget?
-
表情控件,如果设置后将会替换默认的表情控件。详细参考 ChatUIKitEmojiPanel。
final
- enableAppBar → bool
-
是否显示AppBar, 默认为
true
。 当为false
时将不会显示AppBar。同时也会影响到是否显示标题。final - forceLeft → bool?
-
强制消息靠左,默认为
false
, 设置后自己发的消息也会在左侧显示。final - hashCode → int
-
The hash code for this object.
no setterinherited
- inputBar → Widget?
-
自定义输入框, 如果设置后将会替换默认的输入框。详细参考 ChatUIKitInputBar。
final
- inputController → ChatUIKitKeyboardPanelController?
-
final
- itemBuilder → MessageItemBuilder?
-
消息
item
构建器, 如果设置后需要显示消息时会直接回调,如果不处理可以返回null
。final -
longPressActions
→ List<
ChatUIKitEventAction> ? -
消息长按事件列表,如果设置后将会替换默认的消息长按事件列表。详细参考 ChatUIKitEventAction。
final
-
morePressActions
→ List<
ChatUIKitEventAction> ? -
更多按钮点击事件列表,如果设置后将会替换默认的更多按钮点击事件列表。详细参考 ChatUIKitEventAction。
final
- multiSelectBottomBar → Widget?
-
多选时显示的 bottom bar
final
- onAvatarLongPress → MessageItemTapHandler?
-
头像长按事件,如果设置后头像长按事件将直接回调,如果不处理可以返回
false
。final - onAvatarTap → MessageItemTapHandler?
-
头像点击事件,如果设置后头像点击事件将直接回调,如果不处理可以返回
false
。final - onDoubleTap → MessageItemGlobalPositionTapHandler?
-
消息双击事件,如果设置后消息双击事件将直接回调,如果不处理可以返回
false
。final - onErrorBtnTapHandler → MessageItemTapHandler?
-
错误消息点击事件,如果设置后将会替换默认的错误消息点击事件。如果不处理可以返回
false
。默认行为为重新发送消息。final - onItemLongPress → MessageItemGlobalPositionTapHandler?
-
消息长按事件, 如果设置后消息长按事件将直接回调,返回
true
表示处理你需要处理,返回false
则会执行默认的长按事件。final - onItemLongPressHandler → MessagesViewItemLongPressPositionHandler?
-
消息长按事件回调, 如果设置后将会替换默认的消息长按事件回调。当长按时会回调 longPressActions 中设置的事件,需要返回一个列表用于替换,如果不返回则不会显示长按。
final
- onItemTap → MessageItemGlobalPositionTapHandler?
-
消息点击事件, 如果设置后消息点击事件将直接回调,如果不处理可以返回
false
。final - onMoreActionsItemsHandler → MessagesViewMorePressHandler?
-
更多按钮点击事件, 如果设置后将会替换默认的更多按钮点击事件。详细参考 ChatUIKitEventAction。
final
- onNicknameTap → MessageItemTapHandler?
-
昵称点击事件, 如果设置后昵称点击事件将直接回调,如果不处理可以返回
false
。final - onReactionInfoTap → MessageItemTapHandler?
-
final
- onReactionItemTap → MessageReactionItemTapHandler?
-
final
- quoteBuilder → Widget Function(BuildContext context, QuoteModel model)?
-
引用消息构建器,如果设置后将会替换默认的引用消息样式。
final
- reactionItemsBuilder → MessageItemBuilder?
-
final
- replyBarBuilder → MessageItemBuilder?
-
回复消息输入控件构建器,如果设置后将会替换默认的回复消息输入控件构建器。详细参考 ChatUIKitReplyBar。
final
- rightTopMoreActionsBuilder → ChatUIKitMoreActionsBuilder?
-
更多操作构建器,用于构建更多操作的菜单,如果不设置将会使用默认的菜单。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showMessageItemAvatar → MessageItemShowHandler?
-
是否显示头像, 默认为
true
。 如果设置为false
将不会显示头像。final - showMessageItemNickname → MessageItemShowHandler?
-
是否显示昵称, 默认为
true
。如果设置为false
将不会显示昵称。final - viewObserver ↔ ChatUIKitViewObserver?
-
getter/setter pairoverride
Methods
-
copyWith(
{ThreadMessagesViewController? controller, ChatUIKitAppBarModel? appBarModel, bool? enableAppBar, Widget? inputBar, MessageItemShowHandler? showMessageItemAvatar, MessageItemShowHandler? showMessageItemNickname, MessageItemGlobalPositionTapHandler? onItemTap, MessageItemGlobalPositionTapHandler? onItemLongPress, MessageItemGlobalPositionTapHandler? onDoubleTap, MessageItemTapHandler? onAvatarTap, MessageItemTapHandler? onAvatarLongPress, MessageItemTapHandler? onNicknameTap, MessageItemBuilder? itemBuilder, MessageItemBuilder? alertItemBuilder, List< ChatUIKitEventAction> ? morePressActions, MessagesViewMorePressHandler? onMoreActionsItemsHandler, List<ChatUIKitEventAction> ? longPressActions, MessagesViewItemLongPressPositionHandler? onItemLongPressHandler, bool? forceLeft, Widget? emojiWidget, MessageItemBuilder? replyBarBuilder, Widget quoteBuilder(BuildContext context, QuoteModel model)?, MessageItemTapHandler? onErrorBtnTapHandler, MessageItemBubbleBuilder? bubbleBuilder, MessageItemBuilder? bubbleContentBuilder, ChatUIKitKeyboardPanelController? inputController, Widget? multiSelectBottomBar, MessageReactionItemTapHandler? onReactionItemTap, MessageItemTapHandler? onReactionInfoTap, MessageItemBuilder? reactionItemsBuilder, String? attributes, ChatUIKitViewObserver? viewObserver, ChatUIKitMoreActionsBuilder? rightTopMoreActionsBuilder}) → ThreadMessagesViewArguments -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited