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