updateEmail method
Update an account's email.
https://atprotodart.com/docs/lexicons/com/atproto/server/updateEmail
Implementation
Future<XRPCResponse<EmptyData>> updateEmail({
required String email,
bool? emailAuthFactor,
String? token,
Map<String, String>? $unknown,
Map<String, String>? $headers,
PostClient? $client,
}) async =>
await _ctx.post<EmptyData>(
ns.comAtprotoServerUpdateEmail,
headers: $headers,
body: {
'email': email,
if (emailAuthFactor != null) 'emailAuthFactor': emailAuthFactor,
if (token != null) 'token': token,
...?$unknown,
},
client: $client,
);