ChatViewItem constructor

const ChatViewItem({
  1. Key? key,
  2. String? itemBody,
  3. bool senderRight = true,
  4. ChatViewItemRecordBodyType itemBodyType = ChatViewItemRecordBodyType.text,
  5. Color backgroundColor = Colors.white,
  6. ChatViewItemTextTypeModel? textTypeModel,
  7. ChatViewItemImageTypeModel? imageTypeModel,
  8. ChatViewItemFileTypeModel? fileTypeModel,
  9. ChatViewItemVideoTypeModel? videoTypeModel,
  10. ChatViewItemAudioTypeModel? audioTypeModel,
  11. ChatViewItemAvatarModel? avatarModel,
  12. CommonParamModel? commonParamModel,
  13. void itemBodyTap(
    1. ChatViewItemRecordBodyType type
    )?,
  14. void itemBodyMediaTap(
    1. ChatViewItemRecordBodyType type
    )?,
  15. String? itemBodyRecordTime,
  16. Widget? customItem,
  17. Widget? customRecordTimeWidget,
  18. TextStyle? customRecordTimeStyle,
  19. 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,
});