Avatar.initials constructor
const
Avatar.initials({
- Key? key,
- required String? initials,
- double size = 32.0,
- BorderRadius? borderRadius,
- Color? backgroundColor,
- Color? foregroundColor,
- Color? borderColor,
- double borderWidth = 1.0,
- VoidCallback? onTap,
- String? semanticLabel,
Factory for an initials-based avatar.
Implementation
const Avatar.initials({
super.key,
required this.initials,
this.size = 32.0,
this.borderRadius,
this.backgroundColor,
this.foregroundColor,
this.borderColor,
this.borderWidth = 1.0,
this.onTap,
this.semanticLabel,
}) : type = AvatarType.placeholder,
image = null,
imageUrl = null,
icon = null,
iconWidget = null;