AtomicAvatar constructor

const AtomicAvatar({
  1. Key? key,
  2. ImageProvider<Object>? image,
  3. String? name,
  4. IconData? icon,
  5. AtomicAvatarSize size = AtomicAvatarSize.medium,
  6. AtomicAvatarShape shape = AtomicAvatarShape.circle,
  7. Color? backgroundColor,
  8. Color? foregroundColor,
  9. Border? border,
  10. AtomicAvatarShadow shadow = AtomicAvatarShadow.none,
  11. Widget? badge,
  12. VoidCallback? onTap,
  13. IconData fallbackIcon = Icons.person,
})

Implementation

const AtomicAvatar({
  super.key,
  this.image,
  this.name,
  this.icon,
  this.size = AtomicAvatarSize.medium,
  this.shape = AtomicAvatarShape.circle,
  this.backgroundColor,
  this.foregroundColor,
  this.border,
  this.shadow = AtomicAvatarShadow.none,
  this.badge,
  this.onTap,
  this.fallbackIcon = Icons.person,
});