PrismAvatar constructor

const PrismAvatar({
  1. Key? key,
  2. required String name,
  3. String? imageUrl,
  4. ImageProvider<Object>? image,
  5. double size = 40,
  6. PrismAvatarShape shape = PrismAvatarShape.circle,
  7. Color? backgroundColor,
  8. Color? foregroundColor,
  9. PrismPresence? presence,
  10. Widget? badge,
  11. String? initialsOverride,
  12. String? semanticLabel,
  13. double borderWidth = 0,
  14. Color? borderColor,
})

Creates an avatar.

Implementation

const PrismAvatar({
  super.key,
  required this.name,
  this.imageUrl,
  this.image,
  this.size = 40,
  this.shape = PrismAvatarShape.circle,
  this.backgroundColor,
  this.foregroundColor,
  this.presence,
  this.badge,
  this.initialsOverride,
  this.semanticLabel,
  this.borderWidth = 0,
  this.borderColor,
});