AvatarImage constructor
- Key? key,
- Widget? child,
- Color? backgroundColor,
- ImageProvider<
Object> ? backgroundImage, - Color? foregroundColor,
- double? radius,
- double? minRadius,
- double? maxRadius,
- BorderRadius? borderRadius,
- AvatarImageShape shape = AvatarImageShape.circle,
- double size = ImageSize.medium,
Create Avatar of all types i,e, square, circle, standard with different sizes.
Implementation
const AvatarImage(
{Key? key,
this.child,
this.backgroundColor,
this.backgroundImage,
this.foregroundColor,
this.radius,
this.minRadius,
this.maxRadius,
this.borderRadius,
this.shape = AvatarImageShape.circle,
this.size = ImageSize.medium})
: assert(radius == null || (minRadius == null && maxRadius == null)),
super(key: key);