deleteUser method

Future<void> deleteUser()

Implementation

Future<void> deleteUser() async {
  try {
    if (auth.currentUser != null) {
      await auth.currentUser!.delete();
      if (kDebugMode) print('User Deleted');
    }
  } on FirebaseAuthException catch (e) {
    firebaseAuthOnCacthError(e);
  } catch (e) {
    catchOnError(e);
  }
}