DDSAvatar constructor

const DDSAvatar({
  1. Key? key,
  2. AvatarSize size = AvatarSize.small,
  3. AvatarState state = AvatarState.rest,
  4. AvatarType type = AvatarType.initial,
  5. String? initials,
  6. Icon? icon,
  7. Color? backgroundColor,
  8. Color? borderColor,
  9. Color? textColor,
  10. double scaleFactor = 1.0,
  11. VoidCallback? onEdit,
  12. File? selectedImage,
  13. Widget? stateChild,
  14. 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);