copyWith method
Implementation
Credential copyWith({
String? id,
String? name,
String? email,
String? photo,
String? accessToken,
String? idToken,
OAuthCredential? credential,
}) {
return Credential(
credential: credential ?? this.credential,
id: id ?? this.id,
email: email ?? this.email,
name: name ?? this.name,
photo: photo ?? this.photo,
accessToken: accessToken ?? this.accessToken,
idToken: idToken ?? this.idToken,
);
}