ZegoInRoomMessageViewItem constructor

const ZegoInRoomMessageViewItem({
  1. Key? key,
  2. required ZegoInRoomMessage message,
  3. ZegoInRoomMessageItemBuilder? avatarLeadingBuilder,
  4. ZegoInRoomMessageItemBuilder? avatarTailingBuilder,
  5. ZegoInRoomMessageItemBuilder? nameLeadingBuilder,
  6. ZegoInRoomMessageItemBuilder? nameTailingBuilder,
  7. ZegoInRoomMessageItemBuilder? textLeadingBuilder,
  8. ZegoInRoomMessageItemBuilder? textTailingBuilder,
  9. bool isHorizontal = true,
  10. bool showName = true,
  11. bool showAvatar = true,
  12. String? namePrefix,
  13. ZegoAvatarBuilder? avatarBuilder,
  14. Widget? resendIcon,
  15. BorderRadiusGeometry? borderRadius,
  16. EdgeInsetsGeometry? paddings,
  17. double? opacity,
  18. Color? backgroundColor,
  19. int? maxLines,
  20. TextStyle? nameTextStyle,
  21. TextStyle? messageTextStyle,
  22. ZegoInRoomMessageViewItemPressEvent? onItemClick,
  23. ZegoInRoomMessageViewItemPressEvent? onItemLongPress,
})

Implementation

const ZegoInRoomMessageViewItem({
  Key? key,
  required this.message,
  this.avatarLeadingBuilder,
  this.avatarTailingBuilder,
  this.nameLeadingBuilder,
  this.nameTailingBuilder,
  this.textLeadingBuilder,
  this.textTailingBuilder,
  this.isHorizontal = true,
  this.showName = true,
  this.showAvatar = true,
  this.namePrefix,
  this.avatarBuilder,
  this.resendIcon,
  this.borderRadius,
  this.paddings,
  this.opacity,
  this.backgroundColor,
  this.maxLines,
  this.nameTextStyle,
  this.messageTextStyle,
  this.onItemClick,
  this.onItemLongPress,
}) : super(key: key);