ZeroAvatar.url constructor
const
ZeroAvatar.url(
- String avatarUrl, {
- Key? key,
- AvatarSize size = AvatarSize.l,
- bool withBadge = false,
- ZeroAvatarStyle? style,
- Widget? badgeChild,
Create avatar from URL Default values: size = AvatarSize.l withBadge = false
Implementation
const ZeroAvatar.url(
String avatarUrl, {
super.key,
this.size = AvatarSize.l,
this.withBadge = false,
this.style,
this.badgeChild,
}) : url = avatarUrl,
variant = AvatarVariant.image,
fullName = null,
type = SourceType.url;