AvatarView constructor

const AvatarView({
  1. Key? key,
  2. AvatarType avatarType = AvatarType.CIRCLE,
  3. bool isOnlyText = false,
  4. double radius = 50,
  5. double borderWidth = 0,
  6. Color? borderColor,
  7. Color? backgroundColor,
  8. Color? foregroundColor,
  9. String imagePath = "",
  10. Text? text,
  11. GestureTapCallback? onTap,
  12. Widget? placeHolder,
  13. Widget? errorWidget,
})

Implementation

const AvatarView(
    {Key? key,
    this.avatarType = AvatarType.CIRCLE,
    this.isOnlyText = false,
    this.radius = 50,
    this.borderWidth = 0,
    this.borderColor,
    this.backgroundColor,
    this.foregroundColor,
    this.imagePath = "",
    this.text,
    this.onTap,
    this.placeHolder,
    this.errorWidget})
    : super(key: key);