ModAvatar constructor
const
ModAvatar({
- Key? key,
- String? text,
- IconData? icon,
- String? imageUrl,
- ModAvatarShape shape = ModAvatarShape.circle,
- ModAvatarSize? size = ModAvatarSize.md,
- double? customSize,
- Color backgroundColor = Colors.blue,
- Color textColor = Colors.white,
Implementation
const ModAvatar({
super.key,
this.text,
this.icon,
this.imageUrl,
this.shape = ModAvatarShape.circle,
this.size = ModAvatarSize.md,
this.customSize,
this.backgroundColor = Colors.blue,
this.textColor = Colors.white,
}) : assert(text != null || icon != null || imageUrl != null,
'At least one of text, icon or imageUrl must be provided');