AccountBasicConfig constructor

const AccountBasicConfig({
  1. required Uri requestPasswordResetApiEndpoint(),
  2. String requestPasswordResetCustomRequestMapper(
    1. String email
    )?,
  3. void requestPasswordResetCustomResponseParser(
    1. Response response
    )?,
  4. Uri submitChangePasswordApiEndpoint(
    1. AuthenticationData data
    )?,
  5. String? submitChangePasswordApiMethod,
  6. String? submitChangeEmailApiMethod,
  7. SubmitChangePasswordCustomRequestMapper? submitChangePasswordCustomRequestMapper,
  8. String requestEmailChangeCustomRequestMapper(
    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. required Uri submitPasswordResetApiEndpoint(
    1. String email,
    2. String code
    ),
  16. SubmitPasswordResetCustomRequestMapper? submitPasswordResetCustomRequestMapper,
  17. void submitPasswordResetCustomResponseParser(
    1. Response response
    )?,
  18. required Uri resendVerificationCodeApiEndpoint(
    1. AuthenticationData data
    )?,
  19. String resendVerificationCodeApiMethod = "PATCH",
  20. required Uri submitVerificationCodeApiEndpoint(
    1. String code,
    2. AuthenticationData data
    )?,
  21. String resendVerificationCodeCustomRequestMapper(
    1. AuthenticationData data,
    2. CustomVerificationCodePayload? customPayload
    )?,
  22. String submitVerificationCodeCustomRequestMapper(
    1. String code,
    2. AuthenticationData data
    )?,
  23. void resendVerificationCodeCustomResponseParser(
    1. Response response
    )?,
  24. void submitVerificationCodeCustomResponseParser(
    1. Response response
    )?,
  25. String updateUserInfoCustomRequestMapper(
    1. Map<String, dynamic> userInfo
    )?,
  26. required Uri updateUserInfoApiEndpoint(
    1. AuthenticationData data
    )?,
  27. required Uri updateUserProfilePictureApiEndpoint(
    1. AuthenticationData data
    )?,
  28. FutureOr<MultipartRequest> updateUserProfilePictureCustomRequestMapper(
    1. String imagePath,
    2. MultipartRequest baseRequest,
    3. AuthenticationData data
    )?,
  29. User? updateUserInfoCustomResponseParser(
    1. Response response
    )?,
  30. String? updateUserProfilePictureApiMethod,
  31. String? updateUserProfilePictureCustomResponseParser(
    1. Response body
    )?,
  32. Uri requestEmailChangeApiEndpoint(
    1. AuthenticationData data
    )?,
  33. required Uri resendChangeEmailCodeApiEndpoint(
    1. AuthenticationData data
    )?,
  34. String resendChangeEmailCodeCustomRequestMapper(
    1. Map<String, dynamic>? params
    )?,
  35. void resendChangeEmailCodeCustomResponseParser(
    1. Response response
    )?,
  36. String? resendChangeEmailCodeApiMethod,
  37. Uri updateUsernameApiEndpoint(
    1. AuthenticationData data
    )?,
  38. String? updateUsernameApiEndpointMethod,
  39. String updateUsernameCustomRequestMapper(
    1. String username
    )?,
  40. User? updateUsernameCustomResponseParser(
    1. Response response
    )?,
  41. Uri cancelChangeEmailApiEndpoint(
    1. AuthenticationData data
    )?,
  42. String? cancelChangeEmailApiMethod,
  43. String cancelChangeEmailRequestMapper(
    1. AuthenticationData data
    )?,
})

Implementation

const AccountBasicConfig({
  required this.requestPasswordResetApiEndpoint,
  this.requestPasswordResetCustomRequestMapper,
  this.requestPasswordResetCustomResponseParser,
  this.submitChangePasswordApiEndpoint,
  this.submitChangePasswordApiMethod,
  this.submitChangeEmailApiMethod,
  this.submitChangePasswordCustomRequestMapper,
  this.requestEmailChangeCustomRequestMapper,
  this.submitChangePasswordCustomResponseParser,
  this.submitChangeEmailCustomResponseParser,
  this.confirmChangeEmailApiEndpoint,
  this.confirmChangeEmailApiEndpointMethod,
  this.confirmChangeEmailCustomRequestMapper,
  this.confirmChangeEmailCustomResponseParser,
  required this.submitPasswordResetApiEndpoint,
  this.submitPasswordResetCustomRequestMapper,
  this.submitPasswordResetCustomResponseParser,
  required this.resendVerificationCodeApiEndpoint,
  this.resendVerificationCodeApiMethod = "PATCH",
  required this.submitVerificationCodeApiEndpoint,
  this.resendVerificationCodeCustomRequestMapper,
  this.submitVerificationCodeCustomRequestMapper,
  this.resendVerificationCodeCustomResponseParser,
  this.submitVerificationCodeCustomResponseParser,
  this.updateUserInfoCustomRequestMapper,
  required this.updateUserInfoApiEndpoint,
  required this.updateUserProfilePictureApiEndpoint,
  this.updateUserProfilePictureCustomRequestMapper,
  this.updateUserInfoCustomResponseParser,
  this.updateUserProfilePictureApiMethod,
  this.updateUserProfilePictureCustomResponseParser,
  this.requestEmailChangeApiEndpoint,
  required this.resendChangeEmailCodeApiEndpoint,
  this.resendChangeEmailCodeCustomRequestMapper,
  this.resendChangeEmailCodeCustomResponseParser,
  this.resendChangeEmailCodeApiMethod,
  this.updateUsernameApiEndpoint,
  this.updateUsernameApiEndpointMethod,
  this.updateUsernameCustomRequestMapper,
  this.updateUsernameCustomResponseParser,
  this.cancelChangeEmailApiEndpoint,
  this.cancelChangeEmailApiMethod,
  this.cancelChangeEmailRequestMapper,
});