ZetaAvatar.image constructor

const ZetaAvatar.image({
  1. Key? key,
  2. ZetaAvatarSize size = ZetaAvatarSize.xl,
  3. Widget? image,
  4. ZetaAvatarBadge? lowerBadge,
  5. ZetaAvatarBadge? upperBadge,
  6. Color? borderColor,
  7. String semanticLabel = 'avatar',
  8. String semanticUpperBadgeLabel = 'upperBadge',
  9. String semanticLowerBadgeLabel = 'lowerBadge',
})

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',
})  : backgroundColor = null,
      initials = null,
      initialTextStyle = null;