AccountBasicConfig class
Constructors
AccountBasicConfig ({required Uri requestPasswordResetApiEndpoint (), String requestPasswordResetCustomRequestMapper (String email )?, void requestPasswordResetCustomResponseParser (Response response )?, Uri submitChangePasswordApiEndpoint (AuthenticationData data )?, String ? submitChangePasswordApiMethod , String ? submitChangeEmailApiMethod , SubmitChangePasswordCustomRequestMapper ? submitChangePasswordCustomRequestMapper , String requestEmailChangeCustomRequestMapper (String newEmail , AuthenticationData authData , Map <String , dynamic > ? additionalParams )?, 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 (String email , String code ), 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 (Map <String , dynamic > userInfo )?, 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 (Map <String , dynamic > ? params )?, 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 )? })
const
Properties
cancelChangeEmailApiEndpoint
→ Uri Function(AuthenticationData data ) ?
cancel Change email Reset Api Endpoint
final
cancelChangeEmailApiMethod
→ String ?
Provides a custom HTTP METHOD (PATCH or POST) to be used when sending request.
Defaults to POST
final
cancelChangeEmailRequestMapper
→ String Function(AuthenticationData data ) ?
Provides a way to customize the payload sent to the cancelChangeEmailApiEndpoint call
final
confirmChangeEmailApiEndpoint
→ Uri Function(AuthenticationData data ) ?
Provides an endpoint to be used when confirming change email
final
confirmChangeEmailApiEndpointMethod
→ String ?
Provides a custom HTTP METHOD (PATCH or POST) to be used when sending request.
Defaults to PATCH
final
confirmChangeEmailCustomRequestMapper
→ String Function(String code ) ?
Provides a way to customize the payload sent to confirm change email endpoint call
final
confirmChangeEmailCustomResponseParser
→ void Function(Response response ) ?
Provides a way to customize the way the response is parsed
final
hashCode
→ int
The hash code for this object.
no setter inherited
requestEmailChangeApiEndpoint
→ Uri Function(AuthenticationData data ) ?
Provides an endpoint to be used when request an email change
final
requestEmailChangeCustomRequestMapper
→ String Function(String newEmail , AuthenticationData authData , Map <String , dynamic > ? additionalParams ) ?
Provides a way to customize the payload sent to the submit change Email endpoint call
final
requestPasswordResetApiEndpoint
→ Uri Function()
Request Password Reset Api Endpoint
final
requestPasswordResetCustomRequestMapper
→ String Function(String email ) ?
Provides a way to customize the payload sent to the request password reset endpoint call
final
requestPasswordResetCustomResponseParser
→ void Function(Response response ) ?
Provides a way to customize the way the response is parsed
final
resendChangeEmailCodeApiEndpoint
→ Uri Function(AuthenticationData data ) ?
Provides an endpoint to be used when resending change email code.
final
resendChangeEmailCodeApiMethod
→ String ?
Provides a custom HTTP METHOD to be used when sending request
Defaults to PATCH
final
resendChangeEmailCodeCustomRequestMapper
→ String Function(Map <String , dynamic > ? params ) ?
Provides a way to customize the payload sent to resend change email code endpoint call
final
resendChangeEmailCodeCustomResponseParser
→ void Function(Response response ) ?
Provides a way to customize the way the response is parsed
final
resendVerificationCodeApiEndpoint
→ Uri Function(AuthenticationData data ) ?
Verify account
final
resendVerificationCodeApiMethod
→ String
Provides custom HTTP METHOD to be used when resending Verification Code, the default method is PATCH
final
resendVerificationCodeCustomRequestMapper
→ String Function(AuthenticationData data , CustomVerificationCodePayload ? customPayload ) ?
Provides a way to customize the payload sent to the resendVerificationCodeApiEndpoint call
if CustomVerificationCodePayload was passed when calling event, it will be available on the callbackProvided
final
resendVerificationCodeCustomResponseParser
→ void Function(Response response ) ?
Provides a way to customize the way the response is parsed
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
submitChangeEmailApiMethod
→ String ?
Provides a custom HTTP METHOD (PATCH or POST) to be used when sending request.
Defaults to POST
final
submitChangeEmailCustomResponseParser
→ void Function(Response response ) ?
Provides a way to customize the way the response is parsed
final
submitChangePasswordApiEndpoint
→ Uri Function(AuthenticationData data ) ?
Provides an endpoint to be used when submitting change the account password.
final
submitChangePasswordApiMethod
→ String ?
Provides a custom HTTP METHOD (PATCH or POST) to be used when sending request.
Defaults to POST
final
submitChangePasswordCustomRequestMapper
→ SubmitChangePasswordCustomRequestMapper ?
Provides a way to customize the payload sent to the submit change password endpoint call
final
submitChangePasswordCustomResponseParser
→ void Function(Response response ) ?
Provides a way to customize the way the response is parsed
final
submitPasswordResetApiEndpoint
→ Uri Function(String email , String code )
Submit Password Reset
final
submitPasswordResetCustomRequestMapper
→ SubmitPasswordResetCustomRequestMapper ?
Provides a way to customize the payload sent to the submit password reset endpoint call
final
submitPasswordResetCustomResponseParser
→ void Function(Response response ) ?
Provides a way to customize the way the response is parsed
final
submitVerificationCodeApiEndpoint
→ Uri Function(String code , AuthenticationData data ) ?
Provides an endpoint to be used when submitting an account verification with code
final
submitVerificationCodeCustomRequestMapper
→ String Function(String code , AuthenticationData data ) ?
Provides a way to customize the payload sent to the submitVerificationCodeApiEndpoint call
final
submitVerificationCodeCustomResponseParser
→ void Function(Response response ) ?
Provides a way to customize the way the response is parsed
final
updateUserInfoApiEndpoint
→ Uri Function(AuthenticationData data ) ?
Provides an endpoint to be used when update an user info
final
updateUserInfoCustomRequestMapper
→ String Function(Map <String , dynamic > userInfo ) ?
Provides a way to customize the payload sent to the updateUserInfoApiEndPoint call
final
updateUserInfoCustomResponseParser
→ User? Function(Response response ) ?
Provides a way to customize the way the response is parsed
final
updateUsernameApiEndpoint
→ Uri Function(AuthenticationData data ) ?
Provides an endpoint to be used when updating username
final
updateUsernameApiEndpointMethod
→ String ?
Provides a custom HTTP METHOD (PATCH or POST) to be used when sending request.
Defaults to PATCH
final
updateUsernameCustomRequestMapper
→ String Function(String username ) ?
Provides a way to customize the payload sent to confirm update username endpoint call
final
updateUsernameCustomResponseParser
→ User? Function(Response response ) ?
Provides a way to customize the way the response is parsed
final
updateUserProfilePictureApiEndpoint
→ Uri Function(AuthenticationData data ) ?
Provides an endpoint to be used when update an user profile picture
final
updateUserProfilePictureApiMethod
→ String ?
Provides a custom HTTP METHOD to be used when sending request
Defaults to `PATCH``
final
updateUserProfilePictureCustomRequestMapper
→ FutureOr <MultipartRequest > Function(String imagePath , MultipartRequest baseRequest , AuthenticationData data ) ?
Provides a way to customize the MultipartRequest sent to the updateUserProfilePictureApiEndpoint call.
final
updateUserProfilePictureCustomResponseParser
→ String ? Function(Response body ) ?
Provides a way to parse API response, you should return a url to fetch the new image
final
Methods
copyWith ({Uri requestPasswordResetApiEndpoint ()?, String requestPasswordResetCustomRequestMapper (String email )?, dynamic requestPasswordResetCustomResponseParser (Response email )?, Uri submitChangePasswordApiEndpoint (AuthenticationData data )?, String ? submitChangePasswordApiMethod , String ? submitChangeEmailApiMethod , SubmitChangePasswordCustomRequestMapper ? submitChangePasswordCustomRequestMapper , String submitChangeEmailCustomRequestMapper (String newEmail , AuthenticationData authData , Map <String , dynamic > ? additionalParams )?, void submitChangePasswordCustomResponseParser (Response response )?, void submitChangeEmailCustomResponseParser (Response response )?, Uri confirmChangeEmailApiEndpoint (AuthenticationData data )?, String ? confirmChangeEmailApiEndpointMethod , String confirmChangeEmailCustomRequestMapper (String code )?, void confirmChangeEmailCustomResponseParser (Response response )?, Uri submitPasswordResetApiEndpoint (String email , String code )?, SubmitPasswordResetCustomRequestMapper ? submitPasswordResetCustomRequestMapper , void submitPasswordResetCustomResponseParser (Response response )?, Uri resendVerificationCodeApiEndpoint (AuthenticationData data )?, 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 (Map <String , dynamic > userInfo )?, Uri updateUserInfoApiEndpoint (AuthenticationData data )?, 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 )?, Uri resendChangeEmailCodeApiEndpoint (AuthenticationData data )?, String resendChangeEmailCodeCustomRequestMapper (Map <String , dynamic > ? params )?, void resendChangeEmailCodeCustomResponseParser (Response response )?, String ? resendChangeEmailCodeApiMethod , Uri updateUsernameApiEndpoint (AuthenticationData data )?, String ? updateUsernameApiEndpointMethod , String updateUsernameCustomRequestMapper (String username )?, User? updateUsernameCustomResponseParser (Response response )?, Uri deleteAccountApiEndpoint (AuthenticationData data )?, User? deleteAccountCustomResponseParser (Response response )?, Uri cancelChangeEmailApiEndpoint (AuthenticationData data )?, String ? cancelChangeEmailApiMethod , String cancelChangeEmailRequestMapper (AuthenticationData data )? })
→ AccountBasicConfig
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited