copy method
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,
);
}