deleteAccount method

Future<void> deleteAccount({
  1. required String redirectURI,
  2. List<String>? uiLocales,
  3. ColorScheme? colorScheme,
  4. String? wechatRedirectURI,
})

Implementation

Future<void> deleteAccount(
    {required String redirectURI,
    List<String>? uiLocales,
    ColorScheme? colorScheme,
    String? wechatRedirectURI}) async {
  await _openSettingsAction(
    action: SettingsAction.deleteAccount,
    redirectURI: redirectURI,
    uiLocales: uiLocales,
    colorScheme: colorScheme,
    wechatRedirectURI: wechatRedirectURI,
  );
  await _clearSession(SessionStateChangeReason.invalid);
}