copyWith method
Implementation
ChatUser copyWith({
String? id,
String? name,
String? profilePhoto,
ImageType? imageType,
String? defaultAvatarImage,
bool forceNullValue = false,
}) {
return ChatUser(
id: id ?? this.id,
name: name ?? this.name,
imageType: imageType ?? this.imageType,
profilePhoto:
forceNullValue ? profilePhoto : profilePhoto ?? this.profilePhoto,
defaultAvatarImage: defaultAvatarImage ?? this.defaultAvatarImage,
);
}