copyWith method

AvatarProps copyWith({
  1. String? imageUrl,
  2. String? initials,
  3. AvatarSize? size,
  4. AvatarShape? shape,
  5. String? borderColor,
  6. bool? showStatus,
  7. String? statusColor,
  8. 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,
  );
}