ZegoInRoomMessageViewItem constructor
const
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,
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);