ChatViewItem constructor
const
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()?,
- void itemBodyMediaTap()?,
- String? itemBodyRecordTime,
- Widget? customItem,
- Widget? customRecordTimeWidget,
- TextStyle? customRecordTimeStyle,
- BoxConstraints? chatViewItemRecordBodyBoxConstraints,
Implementation
const ChatViewItem({
super.key,
this.itemBody,
this.senderRight = true,
this.itemBodyType = ChatViewItemRecordBodyType.text,
this.backgroundColor = Colors.white,
this.textTypeModel,
this.imageTypeModel,
this.fileTypeModel,
this.videoTypeModel,
this.audioTypeModel,
this.avatarModel,
this.commonParamModel,
this.itemBodyTap,
this.itemBodyMediaTap,
this.itemBodyRecordTime,
this.customItem,
this.customRecordTimeWidget,
this.customRecordTimeStyle,
this.chatViewItemRecordBodyBoxConstraints,
});