Avatar.network constructor

Avatar.network({
  1. Key? key,
  2. required String initials,
  3. Color? backgroundColor,
  4. double? size,
  5. double? borderRadius,
  6. AvatarWidget? badge,
  7. AlignmentGeometry? badgeAlignment,
  8. double? badgeGap,
  9. int? cacheWidth,
  10. int? cacheHeight,
  11. required String photoUrl,
})

Implementation

Avatar.network({
  super.key,
  required this.initials,
  this.backgroundColor,
  this.size,
  this.borderRadius,
  this.badge,
  this.badgeAlignment,
  this.badgeGap,
  int? cacheWidth,
  int? cacheHeight,
  required String photoUrl,
}) : provider = ResizeImage.resizeIfNeeded(
        cacheWidth,
        cacheHeight,
        NetworkImage(photoUrl),
      );