ToolTipsConfig class

Constructors

ToolTipsConfig({bool showDeleteMessage = true, bool showMultipleChoiceMessage = true, bool showRecallMessage = true, bool showReplyMessage = true, bool showTranslation = true, bool showCopyMessage = true, bool showForwardMessage = true, List<MessageToolTipItem> additionalMessageToolTips(V2TimMessage message, dynamic closeTooltip())?, @Deprecated("Please use `additionalMessageToolTips` instead. You are now only expected to specify the data, rather than providing a whole widget. This makes usage easier, as you no longer need to worry about the UI display.") Widget? additionalItemBuilder(V2TimMessage message, dynamic closeTooltip(), [Key? key, BuildContext? context])?})

Properties

additionalItemBuilder → (Widget? Function(V2TimMessage message, dynamic closeTooltip(), [Key? key, BuildContext? context])?)
A builder for additional custom items. We recommend using additionalMessageToolTips instead of this field since version 2.0, as you only need to provide the data rather than the whole widget. This makes usage easier and you don't need to worry about the UI display.
final
additionalMessageToolTips ↔ (List<MessageToolTipItem> Function(V2TimMessage message, dynamic closeTooltip())?)
A list of additional message tooltip menu items, provided with the data only. We recommend using this field instead of the previous additionalItemBuilder.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCopyMessage bool
Whether to show the option to copy a message.
final
showDeleteMessage bool
Whether to show the option to delete a message.
final
showForwardMessage bool
Whether to show the option to forward a message.
final
showMultipleChoiceMessage bool
Whether to show the multiple-choice option for messages.
final
showRecallMessage bool
Whether to show the option to recall a message.
final
showReplyMessage bool
Whether to show the reply to a message option.
final
showTranslation bool
Whether to show the option to translate a text message. This module is not available by default. Please contact your Tencent Cloud sales representative or customer service team to enable this feature.
final

Methods

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