copyWith method

AccountBasicConfig copyWith({
  1. Uri requestPasswordResetApiEndpoint()?,
  2. String requestPasswordResetCustomRequestMapper(
    1. String email
    )?,
  3. dynamic requestPasswordResetCustomResponseParser(
    1. Response email
    )?,
  4. Uri submitChangePasswordApiEndpoint(
    1. AuthenticationData data
    )?,
  5. String? submitChangePasswordApiMethod,
  6. String? submitChangeEmailApiMethod,
  7. SubmitChangePasswordCustomRequestMapper? submitChangePasswordCustomRequestMapper,
  8. String submitChangeEmailCustomRequestMapper(
    1. String newEmail,
    2. AuthenticationData authData,
    3. Map<String, dynamic>? additionalParams
    )?,
  9. void submitChangePasswordCustomResponseParser(
    1. Response response
    )?,
  10. void submitChangeEmailCustomResponseParser(
    1. Response response
    )?,
  11. Uri confirmChangeEmailApiEndpoint(
    1. AuthenticationData data
    )?,
  12. String? confirmChangeEmailApiEndpointMethod,
  13. String confirmChangeEmailCustomRequestMapper(
    1. String code
    )?,
  14. void confirmChangeEmailCustomResponseParser(
    1. Response response
    )?,
  15. Uri submitPasswordResetApiEndpoint(
    1. String email,
    2. String code
    )?,
  16. SubmitPasswordResetCustomRequestMapper? submitPasswordResetCustomRequestMapper,
  17. void submitPasswordResetCustomResponseParser(
    1. Response response
    )?,
  18. Uri resendVerificationCodeApiEndpoint(
    1. AuthenticationData data
    )?,
  19. Uri submitVerificationCodeApiEndpoint(
    1. String code,
    2. AuthenticationData data
    )?,
  20. String resendVerificationCodeCustomRequestMapper(
    1. AuthenticationData data,
    2. CustomVerificationCodePayload? customPayload
    )?,
  21. String submitVerificationCodeCustomRequestMapper(
    1. String code,
    2. AuthenticationData data
    )?,
  22. void resendVerificationCodeCustomResponseParser(
    1. Response response
    )?,
  23. void submitVerificationCodeCustomResponseParser(
    1. Response response
    )?,
  24. String updateUserInfoCustomRequestMapper(
    1. Map<String, dynamic> userInfo
    )?,
  25. Uri updateUserInfoApiEndpoint(
    1. AuthenticationData data
    )?,
  26. Uri updateUserProfilePictureApiEndpoint(
    1. AuthenticationData data
    )?,
  27. FutureOr<MultipartRequest> updateUserProfilePictureCustomRequestMapper(
    1. String imagePath,
    2. MultipartRequest baseRequest,
    3. AuthenticationData data
    )?,
  28. User? updateUserInfoCustomResponseParser(
    1. Response response
    )?,
  29. String? updateUserProfilePictureApiMethod,
  30. String? updateUserProfilePictureCustomResponseParser(
    1. Response body
    )?,
  31. Uri requestEmailChangeApiEndpoint(
    1. AuthenticationData data
    )?,
  32. Uri resendChangeEmailCodeApiEndpoint(
    1. AuthenticationData data
    )?,
  33. String resendChangeEmailCodeCustomRequestMapper(
    1. Map<String, dynamic>? params
    )?,
  34. void resendChangeEmailCodeCustomResponseParser(
    1. Response response
    )?,
  35. String? resendChangeEmailCodeApiMethod,
  36. Uri updateUsernameApiEndpoint(
    1. AuthenticationData data
    )?,
  37. String? updateUsernameApiEndpointMethod,
  38. String updateUsernameCustomRequestMapper(
    1. String username
    )?,
  39. User? updateUsernameCustomResponseParser(
    1. Response response
    )?,
  40. Uri deleteAccountApiEndpoint(
    1. AuthenticationData data
    )?,
  41. User? deleteAccountCustomResponseParser(
    1. Response response
    )?,
  42. Uri cancelChangeEmailApiEndpoint(
    1. AuthenticationData data
    )?,
  43. String? cancelChangeEmailApiMethod,
  44. String cancelChangeEmailRequestMapper(
    1. AuthenticationData data
    )?,
})

Implementation

AccountBasicConfig copyWith({
  Uri Function()? requestPasswordResetApiEndpoint,
  String Function(String email)? requestPasswordResetCustomRequestMapper,
  Function(Response email)? requestPasswordResetCustomResponseParser,
  Uri Function(AuthenticationData data)? submitChangePasswordApiEndpoint,
  String? submitChangePasswordApiMethod,
  String? submitChangeEmailApiMethod,
  SubmitChangePasswordCustomRequestMapper? submitChangePasswordCustomRequestMapper,
  String Function(String newEmail, AuthenticationData authData,
          Map<String, dynamic>? additionalParams)?
      submitChangeEmailCustomRequestMapper,
  void Function(Response response)? submitChangePasswordCustomResponseParser,
  void Function(Response response)? submitChangeEmailCustomResponseParser,
  Uri Function(AuthenticationData data)? confirmChangeEmailApiEndpoint,
  String? confirmChangeEmailApiEndpointMethod,
  String Function(String code)? confirmChangeEmailCustomRequestMapper,
  void Function(Response response)? confirmChangeEmailCustomResponseParser,
  Uri Function(String email, String code)? submitPasswordResetApiEndpoint,
  SubmitPasswordResetCustomRequestMapper? submitPasswordResetCustomRequestMapper,
  void Function(Response response)? submitPasswordResetCustomResponseParser,
  Uri Function(AuthenticationData data)? resendVerificationCodeApiEndpoint,
  Uri Function(String code, AuthenticationData data)? submitVerificationCodeApiEndpoint,
  String Function(AuthenticationData data, CustomVerificationCodePayload? customPayload)?
      resendVerificationCodeCustomRequestMapper,
  String Function(String code, AuthenticationData data)?
      submitVerificationCodeCustomRequestMapper,
  void Function(Response response)? resendVerificationCodeCustomResponseParser,
  void Function(Response response)? submitVerificationCodeCustomResponseParser,
  String Function(Map<String, dynamic> userInfo)? updateUserInfoCustomRequestMapper,
  Uri Function(AuthenticationData data)? updateUserInfoApiEndpoint,
  Uri Function(AuthenticationData data)? updateUserProfilePictureApiEndpoint,
  FutureOr<MultipartRequest> Function(
          String imagePath, MultipartRequest baseRequest, AuthenticationData data)?
      updateUserProfilePictureCustomRequestMapper,
  User? Function(Response response)? updateUserInfoCustomResponseParser,
  String? updateUserProfilePictureApiMethod,
  String? Function(Response body)? updateUserProfilePictureCustomResponseParser,
  Uri Function(AuthenticationData data)? requestEmailChangeApiEndpoint,
  Uri Function(AuthenticationData data)? resendChangeEmailCodeApiEndpoint,
  String Function(Map<String, dynamic>? params)? resendChangeEmailCodeCustomRequestMapper,
  void Function(Response response)? resendChangeEmailCodeCustomResponseParser,
  String? resendChangeEmailCodeApiMethod,
  Uri Function(AuthenticationData data)? updateUsernameApiEndpoint,
  String? updateUsernameApiEndpointMethod,
  String Function(String username)? updateUsernameCustomRequestMapper,
  User? Function(Response response)? updateUsernameCustomResponseParser,
  Uri Function(AuthenticationData data)? deleteAccountApiEndpoint,
  User? Function(Response response)? deleteAccountCustomResponseParser,
  Uri Function(AuthenticationData data)? cancelChangeEmailApiEndpoint,
  String? cancelChangeEmailApiMethod,
  String Function(AuthenticationData data)? cancelChangeEmailRequestMapper,
}) {
  return AccountBasicConfig(
    requestPasswordResetApiEndpoint:
        requestPasswordResetApiEndpoint ?? this.requestPasswordResetApiEndpoint,
    requestPasswordResetCustomRequestMapper: requestPasswordResetCustomRequestMapper ??
        this.requestPasswordResetCustomRequestMapper,
    requestPasswordResetCustomResponseParser: requestPasswordResetCustomResponseParser ??
        this.requestPasswordResetCustomResponseParser,
    submitChangePasswordApiEndpoint:
        submitChangePasswordApiEndpoint ?? this.submitChangePasswordApiEndpoint,
    submitChangePasswordApiMethod:
        submitChangePasswordApiMethod ?? this.submitChangePasswordApiMethod,
    submitChangeEmailApiMethod: submitChangeEmailApiMethod ?? this.submitChangeEmailApiMethod,
    submitChangePasswordCustomRequestMapper: submitChangePasswordCustomRequestMapper ??
        this.submitChangePasswordCustomRequestMapper,
    requestEmailChangeCustomRequestMapper:
        submitChangeEmailCustomRequestMapper ?? this.requestEmailChangeCustomRequestMapper,
    submitChangePasswordCustomResponseParser: submitChangePasswordCustomResponseParser ??
        this.submitChangePasswordCustomResponseParser,
    submitChangeEmailCustomResponseParser:
        submitChangeEmailCustomResponseParser ?? this.submitChangeEmailCustomResponseParser,
    confirmChangeEmailApiEndpoint:
        confirmChangeEmailApiEndpoint ?? this.confirmChangeEmailApiEndpoint,
    confirmChangeEmailApiEndpointMethod:
        confirmChangeEmailApiEndpointMethod ?? this.confirmChangeEmailApiEndpointMethod,
    confirmChangeEmailCustomRequestMapper:
        confirmChangeEmailCustomRequestMapper ?? this.confirmChangeEmailCustomRequestMapper,
    confirmChangeEmailCustomResponseParser:
        confirmChangeEmailCustomResponseParser ?? this.confirmChangeEmailCustomResponseParser,
    submitPasswordResetApiEndpoint:
        submitPasswordResetApiEndpoint ?? this.submitPasswordResetApiEndpoint,
    submitPasswordResetCustomRequestMapper:
        submitPasswordResetCustomRequestMapper ?? this.submitPasswordResetCustomRequestMapper,
    submitPasswordResetCustomResponseParser: submitPasswordResetCustomResponseParser ??
        this.submitPasswordResetCustomResponseParser,
    resendVerificationCodeApiEndpoint:
        resendVerificationCodeApiEndpoint ?? this.resendVerificationCodeApiEndpoint,
    submitVerificationCodeApiEndpoint:
        submitVerificationCodeApiEndpoint ?? this.submitVerificationCodeApiEndpoint,
    resendVerificationCodeCustomRequestMapper: resendVerificationCodeCustomRequestMapper ??
        this.resendVerificationCodeCustomRequestMapper,
    submitVerificationCodeCustomRequestMapper: submitVerificationCodeCustomRequestMapper ??
        this.submitVerificationCodeCustomRequestMapper,
    resendVerificationCodeCustomResponseParser: resendVerificationCodeCustomResponseParser ??
        this.resendVerificationCodeCustomResponseParser,
    submitVerificationCodeCustomResponseParser: submitVerificationCodeCustomResponseParser ??
        this.submitVerificationCodeCustomResponseParser,
    updateUserInfoCustomRequestMapper:
        updateUserInfoCustomRequestMapper ?? this.updateUserInfoCustomRequestMapper,
    updateUserInfoApiEndpoint: updateUserInfoApiEndpoint ?? this.updateUserInfoApiEndpoint,
    updateUserProfilePictureApiEndpoint:
        updateUserProfilePictureApiEndpoint ?? this.updateUserProfilePictureApiEndpoint,
    updateUserProfilePictureCustomRequestMapper:
        updateUserProfilePictureCustomRequestMapper ??
            this.updateUserProfilePictureCustomRequestMapper,
    updateUserInfoCustomResponseParser:
        updateUserInfoCustomResponseParser ?? this.updateUserInfoCustomResponseParser,
    updateUserProfilePictureApiMethod:
        updateUserProfilePictureApiMethod ?? this.updateUserProfilePictureApiMethod,
    updateUserProfilePictureCustomResponseParser:
        updateUserProfilePictureCustomResponseParser ??
            this.updateUserProfilePictureCustomResponseParser,
    requestEmailChangeApiEndpoint:
        requestEmailChangeApiEndpoint ?? this.requestEmailChangeApiEndpoint,
    resendChangeEmailCodeApiEndpoint:
        resendChangeEmailCodeApiEndpoint ?? this.resendChangeEmailCodeApiEndpoint,
    resendChangeEmailCodeCustomRequestMapper: resendChangeEmailCodeCustomRequestMapper ??
        this.resendChangeEmailCodeCustomRequestMapper,
    resendChangeEmailCodeCustomResponseParser: resendChangeEmailCodeCustomResponseParser ??
        this.resendChangeEmailCodeCustomResponseParser,
    resendChangeEmailCodeApiMethod:
        resendChangeEmailCodeApiMethod ?? this.resendChangeEmailCodeApiMethod,
    updateUsernameApiEndpoint: updateUsernameApiEndpoint ?? this.updateUsernameApiEndpoint,
    updateUsernameApiEndpointMethod:
        updateUsernameApiEndpointMethod ?? this.updateUsernameApiEndpointMethod,
    updateUsernameCustomRequestMapper:
        updateUsernameCustomRequestMapper ?? this.updateUsernameCustomRequestMapper,
    updateUsernameCustomResponseParser:
        updateUsernameCustomResponseParser ?? this.updateUsernameCustomResponseParser,
    cancelChangeEmailApiEndpoint:
        cancelChangeEmailApiEndpoint ?? this.cancelChangeEmailApiEndpoint,
    cancelChangeEmailApiMethod: cancelChangeEmailApiMethod ?? this.cancelChangeEmailApiMethod,
    cancelChangeEmailRequestMapper:
        cancelChangeEmailRequestMapper ?? this.cancelChangeEmailRequestMapper,
  );
}