TDAvatar constructor
const
TDAvatar({
- Key? key,
- TDAvatarSize size = TDAvatarSize.medium,
- TDAvatarType type = TDAvatarType.normal,
- TDAvatarShape shape = TDAvatarShape.circle,
- String? text,
- double? radius,
- IconData? icon,
- String? avatarUrl,
- double? avatarSize,
- List<
String> ? avatarDisplayList, - String? displayText,
- dynamic onTap()?,
- String defaultUrl = '',
- Widget? avatarDisplayWidget,
- double avatarDisplayBorder = 2,
- 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);