TAvatar constructor

const TAvatar({
  1. Key? key,
  2. String? url,
  3. String? name,
  4. TInputSize size = TInputSize.md,
  5. BoxShape shape = BoxShape.circle,
  6. BorderRadius? borderRadius,
  7. Color? backgroundColor,
  8. Color? foregroundColor,
  9. String? title,
  10. String? subTitle,
  11. Color? titleColor,
  12. Color? subTitleColor,
  13. double spacing = 8,
})

Creates an avatar.

Implementation

const TAvatar({
  super.key,
  this.url,
  this.name,
  this.size = TInputSize.md,
  this.shape = BoxShape.circle,
  this.borderRadius,
  this.backgroundColor,
  this.foregroundColor,
  this.title,
  this.subTitle,
  this.titleColor,
  this.subTitleColor,
  this.spacing = 8,
});