DDSAvatar constructor
const
DDSAvatar({
- Key? key,
- AvatarSize size = AvatarSize.small,
- AvatarState state = AvatarState.rest,
- AvatarType type = AvatarType.initial,
- String? initials,
- Icon? icon,
- Color? backgroundColor,
- Color? borderColor,
- Color? textColor,
- double scaleFactor = 1.0,
- VoidCallback? onEdit,
- File? selectedImage,
- Widget? stateChild,
- PositionedAlignment statePosition = PositionedAlignment.bottomRight,
Implementation
const DDSAvatar({
Key? key,
this.size = AvatarSize.small,
this.state = AvatarState.rest,
this.type = AvatarType.initial,
this.initials,
this.icon,
this.backgroundColor,
this.borderColor,
this.textColor,
this.scaleFactor = 1.0,
this.onEdit,
this.selectedImage,
this.stateChild,
this.statePosition = PositionedAlignment.bottomRight,
}) : super(key: key);