confirmEmailChange method

Future<void> confirmEmailChange(
  1. String token,
  2. bool newsletterAgreement
)

The function confirmEmailChange in Dart confirms the change of email with a token and updates the newsletter agreement.

Args: token (String): A string representing the token used to confirm the email change. This token is generated and sent to the user's email address when they request to change their email. newsletterAgreement (bool): A boolean value indicating whether the user has agreed to receive newsletters or not.

Implementation

Future<void> confirmEmailChange(
    String token, bool newsletterAgreement) async {
  return _methods.confirmEmailChange(token, newsletterAgreement);
}