AccountBasicConfig constructor
const
AccountBasicConfig({
- required Uri requestPasswordResetApiEndpoint(),
- String requestPasswordResetCustomRequestMapper(
- String email
- void requestPasswordResetCustomResponseParser(
- Response response
- Uri submitChangePasswordApiEndpoint(
- AuthenticationData data
- String? submitChangePasswordApiMethod,
- String? submitChangeEmailApiMethod,
- SubmitChangePasswordCustomRequestMapper? submitChangePasswordCustomRequestMapper,
- String requestEmailChangeCustomRequestMapper()?,
- void submitChangePasswordCustomResponseParser(
- Response response
- void submitChangeEmailCustomResponseParser(
- Response response
- Uri confirmChangeEmailApiEndpoint(
- AuthenticationData data
- String? confirmChangeEmailApiEndpointMethod,
- String confirmChangeEmailCustomRequestMapper(
- String code
- void confirmChangeEmailCustomResponseParser(
- Response response
- required Uri submitPasswordResetApiEndpoint(),
- SubmitPasswordResetCustomRequestMapper? submitPasswordResetCustomRequestMapper,
- void submitPasswordResetCustomResponseParser(
- Response response
- required Uri resendVerificationCodeApiEndpoint(
- AuthenticationData data
- String resendVerificationCodeApiMethod = "PATCH",
- required Uri submitVerificationCodeApiEndpoint(
- String code,
- AuthenticationData data
- String resendVerificationCodeCustomRequestMapper(
- AuthenticationData data,
- CustomVerificationCodePayload? customPayload
- String submitVerificationCodeCustomRequestMapper(
- String code,
- AuthenticationData data
- void resendVerificationCodeCustomResponseParser(
- Response response
- void submitVerificationCodeCustomResponseParser(
- Response response
- String updateUserInfoCustomRequestMapper()?,
- required Uri updateUserInfoApiEndpoint(
- AuthenticationData data
- required Uri updateUserProfilePictureApiEndpoint(
- AuthenticationData data
- FutureOr<
MultipartRequest> updateUserProfilePictureCustomRequestMapper(- String imagePath,
- MultipartRequest baseRequest,
- AuthenticationData data
- User? updateUserInfoCustomResponseParser(
- Response response
- String? updateUserProfilePictureApiMethod,
- String? updateUserProfilePictureCustomResponseParser(
- Response body
- Uri requestEmailChangeApiEndpoint(
- AuthenticationData data
- required Uri resendChangeEmailCodeApiEndpoint(
- AuthenticationData data
- String resendChangeEmailCodeCustomRequestMapper()?,
- void resendChangeEmailCodeCustomResponseParser(
- Response response
- String? resendChangeEmailCodeApiMethod,
- Uri updateUsernameApiEndpoint(
- AuthenticationData data
- String? updateUsernameApiEndpointMethod,
- String updateUsernameCustomRequestMapper(
- String username
- User? updateUsernameCustomResponseParser(
- Response response
- Uri cancelChangeEmailApiEndpoint(
- AuthenticationData data
- String? cancelChangeEmailApiMethod,
- String cancelChangeEmailRequestMapper(
- 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,
});