Avatar constructor

const Avatar({
  1. Key? key,
  2. AvatarType type = AvatarType.placeholder,
  3. ImageProvider<Object>? image,
  4. String? imageUrl,
  5. String? initials,
  6. IconData? icon = Icons.face_5_outlined,
  7. Widget? iconWidget,
  8. double size = 32.0,
  9. BorderRadius? borderRadius,
  10. Color? backgroundColor,
  11. Color? foregroundColor,
  12. Color? borderColor,
  13. double borderWidth = 1.0,
  14. VoidCallback? onTap,
  15. String? semanticLabel,
})

Creates an Avatar instance.

Implementation

const Avatar({
  super.key,
  this.type = AvatarType.placeholder,
  this.image,
  this.imageUrl,
  this.initials,
  this.icon = Icons.face_5_outlined,
  this.iconWidget,
  this.size = 32.0,
  this.borderRadius,
  this.backgroundColor,
  this.foregroundColor,
  this.borderColor,
  this.borderWidth = 1.0,
  this.onTap,
  this.semanticLabel,
});