copyWith method

Credential copyWith({
  1. Object? credential,
  2. String? displayName,
  3. String? email,
  4. String? phoneNumber,
  5. String? photoURL,
  6. String? smsCode,
  7. String? uid,
  8. String? verificationId,
})

Implementation

Credential copyWith({
  Object? credential,
  String? displayName,
  String? email,
  String? phoneNumber,
  String? photoURL,
  String? smsCode,
  String? uid,
  String? verificationId,
}) {
  return Credential(
    credential: credential ?? this.credential,
    displayName: displayName ?? this.displayName,
    email: email ?? this.email,
    phoneNumber: phoneNumber ?? this.phoneNumber,
    photoURL: photoURL ?? this.photoURL,
    smsCode: smsCode ?? this.smsCode,
    uid: uid ?? this.uid,
    verificationId: verificationId ?? this.verificationId,
  );
}