GFAvatar constructor

const GFAvatar({
  1. Key? key,
  2. Widget? child,
  3. Color? backgroundColor,
  4. ImageProvider<Object>? backgroundImage,
  5. Color? foregroundColor,
  6. double? radius,
  7. double? minRadius,
  8. double? maxRadius,
  9. BorderRadius? borderRadius,
  10. GFAvatarShape shape = GFAvatarShape.circle,
  11. 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);