SubZeroAvatar constructor

const SubZeroAvatar({
  1. Key? key,
  2. String? imageUrl,
  3. String? initials,
  4. IconData? icon,
  5. SubZeroAvatarSize size = SubZeroAvatarSize.m,
  6. String? semanticLabel,
  7. Color? backgroundColor,
  8. Color? foregroundColor,
})

Creates a SubZero avatar component.

Priority order for display:

  1. imageUrl (if provided and loads successfully)
  2. initials (if provided)
  3. icon or default person icon

Implementation

const SubZeroAvatar({
  super.key,
  this.imageUrl,
  this.initials,
  this.icon,
  this.size = SubZeroAvatarSize.m,
  this.semanticLabel,
  this.backgroundColor,
  this.foregroundColor,
});