copyWith method

UserViewModel copyWith({
  1. String? id,
  2. String? name,
  3. String? bio,
  4. String? city,
  5. String? givenName,
  6. String? familyName,
  7. String? profilePictureUrl,
})

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);
}