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