ProfileAvatar constructor

const ProfileAvatar({
  1. Key? key,
  2. required double size,
  3. required Color borderColor,
  4. double borderWidth = 2.0,
  5. String? profileImagePath,
  6. String? userName,
  7. String? status,
  8. bool isLoading = false,
  9. VoidCallback? onStatusTap,
  10. Widget customFallbackAvatar(
    1. BuildContext,
    2. String initial
    )?,
  11. void onImageError(
    1. Object error
    )?,
  12. String? heroTag,
})

Implementation

const ProfileAvatar({
  super.key,
  required this.size,
  required this.borderColor,
  this.borderWidth = 2.0,
  this.profileImagePath,
  this.userName,
  this.status,
  this.isLoading = false,
  this.onStatusTap,
  this.customFallbackAvatar,
  this.onImageError,
  this.heroTag,
});