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