copy method

UserEntity copy({
  1. String? id,
  2. String? email,
  3. String? name,
  4. String? password,
  5. String? phone,
  6. String? photo,
  7. String? provider,
})

Implementation

UserEntity copy({
  String? id,
  String? email,
  String? name,
  String? password,
  String? phone,
  String? photo,
  String? provider,
}) {
  return UserEntity(
    id: id ?? this.id,
    email: email ?? this.email,
    name: name ?? this.name,
    password: password ?? this.password,
    phone: phone ?? this.phone,
    photo: photo ?? this.photo,
    provider: provider ?? this.provider,
  );
}