ProfileAvatar constructor
const
ProfileAvatar({
- Key? key,
- required double size,
- required Color borderColor,
- double borderWidth = 2.0,
- String? profileImagePath,
- String? userName,
- String? status,
- bool isLoading = false,
- VoidCallback? onStatusTap,
- Widget customFallbackAvatar(
- BuildContext,
- String initial
- void onImageError(
- Object error
- 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,
});