copyWith property

UpdateRequest Function({String? email, String? phoneNumber}) copyWith

Implementation

UpdateRequest Function({String? email, String? phoneNumber}) get copyWith {
  // ignore: avoid_types_on_closure_parameters, false positive
  return ({Object? email = _sentinel, Object? phoneNumber = _sentinel}) {
    return UpdateRequest._(
      disabled: disabled,
      displayName: displayName,
      email: email == _sentinel ? this.email : email as String?,
      emailVerified: emailVerified,
      password: password,
      phoneNumber: phoneNumber == _sentinel
          ? this.phoneNumber
          : phoneNumber as String?,
      photoURL: photoURL,
      multiFactor: multiFactor,
      providerToLink: providerToLink,
      providersToUnlink: providersToUnlink,
    );
  };
}