TDAvatar constructor

const TDAvatar({
  1. Key? key,
  2. TDAvatarSize size = TDAvatarSize.medium,
  3. TDAvatarType type = TDAvatarType.normal,
  4. TDAvatarShape shape = TDAvatarShape.circle,
  5. String? text,
  6. double? radius,
  7. IconData? icon,
  8. String? avatarUrl,
  9. double? avatarSize,
  10. List<String>? avatarDisplayList,
  11. String? displayText,
  12. dynamic onTap()?,
  13. String defaultUrl = '',
  14. Widget? avatarDisplayWidget,
  15. double avatarDisplayBorder = 2,
  16. List<String>? avatarDisplayListAsset,
})

Implementation

const TDAvatar(
    {Key? key,
    this.size = TDAvatarSize.medium,
    this.type = TDAvatarType.normal,
    this.shape = TDAvatarShape.circle,
    this.text,
    this.radius,
    this.icon,
    this.avatarUrl,
    this.avatarSize,
    this.avatarDisplayList,
    this.displayText,
    this.onTap,
    this.defaultUrl = '',
    this.avatarDisplayWidget,
    this.avatarDisplayBorder = 2,
    this.avatarDisplayListAsset,})
    : super(key: key);