PrismAvatar constructor
- Key? key,
- required String name,
- String? imageUrl,
- ImageProvider<
Object> ? image, - double size = 40,
- PrismAvatarShape shape = PrismAvatarShape.circle,
- Color? backgroundColor,
- Color? foregroundColor,
- PrismPresence? presence,
- Widget? badge,
- String? initialsOverride,
- String? semanticLabel,
- double borderWidth = 0,
- 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,
});