copyWith method

SharedUser copyWith({
  1. int? userId,
  2. String? firstName,
  3. String? lastName,
  4. String? username,
  5. Photo? photo,
})

Implementation

SharedUser copyWith({
  int? userId,
  String? firstName,
  String? lastName,
  String? username,
  Photo? photo,
}) => SharedUser(
  userId: userId ?? this.userId,
  firstName: firstName ?? this.firstName,
  lastName: lastName ?? this.lastName,
  username: username ?? this.username,
  photo: photo ?? this.photo,
);