requestEmailChange method

Future<void> requestEmailChange(
  1. String email
)

Asks for the account's address to become email. The server sends a code to that address; nothing changes until confirmEmailChange presents it.

Implementation

Future<void> requestEmailChange(String email) async {
  const String path = DVAuthEndpoints.emailChangePath;
  _decode(
      await _request('POST', path,
          body: <String, Object?>{'email': email}, bearer: _token),
      path);
}