copyWith method
Implementation
UserViewModel copyWith(
{String? id,
String? name,
String? bio,
String? city,
String? givenName,
String? familyName,
String? profilePictureUrl}) {
return UserViewModel(
id: id ?? this.id,
name: name ?? this.name,
bio: bio ?? this.bio,
city: city ?? this.city,
givenName: givenName ?? this.givenName,
familyName: familyName ?? this.familyName,
profilePictureUrl: profilePictureUrl ?? this.profilePictureUrl);
}