ZetaAvatar.image constructor

const ZetaAvatar.image({
  1. Key? key,
  2. ZetaAvatarSize size = ZetaAvatarSize.xl,
  3. Widget? image,
  4. Widget? lowerBadge,
  5. Widget? upperBadge,
  6. Color? borderColor,
  7. String? semanticLabel = 'avatar',
  8. String? semanticUpperBadgeLabel = 'upperBadge',
  9. String? semanticLowerBadgeLabel = 'lowerBadge',
  10. String? label,
  11. TextStyle? labelTextStyle,
  12. int labelMaxLines = 1,
  13. VoidCallback? onTap,
})

Constructor for ZetaAvatar with image.

Implementation

const ZetaAvatar.image({
  super.key,
  this.size = ZetaAvatarSize.xl,
  this.image,
  this.lowerBadge,
  this.upperBadge,
  this.borderColor,
  this.semanticLabel = 'avatar',
  this.semanticUpperBadgeLabel = 'upperBadge',
  this.semanticLowerBadgeLabel = 'lowerBadge',
  this.label,
  this.labelTextStyle,
  this.labelMaxLines = 1,
  this.onTap,
})  : backgroundColor = null,
      initials = null,
      initialTextStyle = null;