UserAvatarView constructor

const UserAvatarView({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. required String url,
  4. double size = 28,
  5. Color? ringColor,
  6. double ringWidth = 0,
  7. String placeholder = R.imgDefaultAvatar,
  8. bool showPlaceholder = true,
  9. bool debug = false,
  10. int nobilityType = NobleTypeEnum.none,
  11. bool showNobility = false,
  12. bool showLiving = false,
  13. int guardType = GuardTypeEnum.none,
})

Implementation

const UserAvatarView({
  Key? key,
  this.onPressed,
  required this.url,
  this.size = 28,
  this.ringColor,
  this.ringWidth = 0,
  this.placeholder = R.imgDefaultAvatar,
  this.showPlaceholder = true,
  this.debug = false,
  this.nobilityType = NobleTypeEnum.none,
  this.showNobility = false,
  this.showLiving = false,
  this.guardType = GuardTypeEnum.none,
}) : super(key: key);