copyWith method
AvatarProps
copyWith({
- String? imageUrl,
- String? initials,
- AvatarSize? size,
- AvatarShape? shape,
- String? borderColor,
- bool? showStatus,
- String? statusColor,
- void onTap()?,
Implementation
AvatarProps copyWith({
String? imageUrl,
String? initials,
AvatarSize? size,
AvatarShape? shape,
String? borderColor,
bool? showStatus,
String? statusColor,
void Function()? onTap,
}) {
return AvatarProps(
imageUrl: imageUrl ?? this.imageUrl,
initials: initials ?? this.initials,
size: size ?? this.size,
shape: shape ?? this.shape,
borderColor: borderColor ?? this.borderColor,
showStatus: showStatus ?? this.showStatus,
statusColor: statusColor ?? this.statusColor,
onTap: onTap ?? this.onTap,
);
}