ChatViewItem class

记录项 item

Inheritance

Constructors

ChatViewItem({Key? key, String? itemBody, bool senderRight = true, ChatViewItemRecordBodyType itemBodyType = ChatViewItemRecordBodyType.text, Color backgroundColor = Colors.white, ChatViewItemTextTypeModel? textTypeModel, ChatViewItemImageTypeModel? imageTypeModel, ChatViewItemFileTypeModel? fileTypeModel, ChatViewItemVideoTypeModel? videoTypeModel, ChatViewItemAudioTypeModel? audioTypeModel, ChatViewItemAvatarModel? avatarModel, CommonParamModel? commonParamModel, void itemBodyTap(ChatViewItemRecordBodyType type)?, void itemBodyMediaTap(ChatViewItemRecordBodyType type)?, String? itemBodyRecordTime, Widget? customItem, Widget? customRecordTimeWidget, TextStyle? customRecordTimeStyle, BoxConstraints? chatViewItemRecordBodyBoxConstraints})
const

Properties

audioTypeModel → ChatViewItemAudioTypeModel?
音频类型配置内容
final
avatarModel → ChatViewItemAvatarModel?
头像配置内容
final
backgroundColor → Color
记录主体的背景色
final
chatViewItemRecordBodyBoxConstraints → BoxConstraints?
内容主体约束
final
commonParamModel → CommonParamModel?
过渡 progressIndicator
final
customItem → Widget?
自定义记录 item 主体
final
customRecordTimeStyle → TextStyle?
自定义时间记录样式
final
customRecordTimeWidget → Widget?
自定义时间记录 widget
final
fileTypeModel → ChatViewItemFileTypeModel?
文件类型配置内容
final
hashCode → int
The hash code for this object.
no setterinherited
imageTypeModel → ChatViewItemImageTypeModel?
图片类型配置内容
final
itemBody → String?
内容
final
itemBodyMediaTap → void Function(ChatViewItemRecordBodyType type)?
文件、图片、音频、视频 点击事件
final
itemBodyRecordTime → String?
记录时间
final
itemBodyTap → void Function(ChatViewItemRecordBodyType type)?
内容主体点击事件
final
itemBodyType → ChatViewItemRecordBodyType
当前记录内容类型
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
senderRight → bool
是否为 右侧 己方
final
textTypeModel → ChatViewItemTextTypeModel?
文本类型配置内容
final
videoTypeModel → ChatViewItemVideoTypeModel?
视频类型配置内容
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<ChatViewItem>
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