ZegoInRoomMessageViewItem class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ZegoInRoomMessageViewItem
Constructors
- ZegoInRoomMessageViewItem({Key? key, required ZegoInRoomMessage message, ZegoInRoomMessageItemBuilder? avatarLeadingBuilder, ZegoInRoomMessageItemBuilder? avatarTailingBuilder, ZegoInRoomMessageItemBuilder? nameLeadingBuilder, ZegoInRoomMessageItemBuilder? nameTailingBuilder, ZegoInRoomMessageItemBuilder? textLeadingBuilder, ZegoInRoomMessageItemBuilder? textTailingBuilder, bool isHorizontal = true, bool showName = true, bool showAvatar = true, String? namePrefix, ZegoAvatarBuilder? avatarBuilder, Widget? resendIcon, BorderRadiusGeometry? borderRadius, EdgeInsetsGeometry? paddings, double? opacity, Color? backgroundColor, int? maxLines, TextStyle? nameTextStyle, TextStyle? messageTextStyle, ZegoInRoomMessageViewItemPressEvent? onItemClick, ZegoInRoomMessageViewItemPressEvent? onItemLongPress})
-
const
Properties
- avatarBuilder → ZegoAvatarBuilder?
-
display user avatar in message list view or not
final
- avatarLeadingBuilder → ZegoInRoomMessageItemBuilder?
-
final
- avatarTailingBuilder → ZegoInRoomMessageItemBuilder?
-
final
- backgroundColor → Color?
-
The background of chat message list items
If you set the backgroundColor, the opacity setting will be overridden.
You can use
backgroundColor.withOpacity(0.5)
to set the opacity of the background color.final - borderRadius → BorderRadiusGeometry?
-
The border radius of chat message list items
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isHorizontal → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxLines → int?
-
The max lines of chat message list items, default value is not limit.
final
- message → ZegoInRoomMessage
-
final
- messageTextStyle → TextStyle?
-
The message text style of chat message list items
final
- nameLeadingBuilder → ZegoInRoomMessageItemBuilder?
-
final
- namePrefix → String?
-
final
- nameTailingBuilder → ZegoInRoomMessageItemBuilder?
-
final
- nameTextStyle → TextStyle?
-
The name text style of chat message list items
final
- onItemClick → ZegoInRoomMessageViewItemPressEvent?
-
Triggered when has click on the message item
final
- onItemLongPress → ZegoInRoomMessageViewItemPressEvent?
-
Triggered when a pointer has remained in contact with the message item at
the same location for a long period of time.
final
- opacity → double?
-
The opacity of the background color for chat message list items, default value of 0.5.
If you set the backgroundColor, the opacity setting will be overridden.
final
- paddings → EdgeInsetsGeometry?
-
The paddings of chat message list items
final
- resendIcon → Widget?
-
resend button icon
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showAvatar → bool
-
display user avatar in message list view or not
final
- showName → bool
-
display user name in message list view or not
final
- textLeadingBuilder → ZegoInRoomMessageItemBuilder?
-
final
- textTailingBuilder → ZegoInRoomMessageItemBuilder?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ZegoInRoomMessageViewItem> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited