deleteAccount method
Implementation
Future<void> deleteAccount(
String userId,
) async {
try {
final callable = _functions.httpsCallable('callables-deleteAccount');
await callable.call({"userId": userId});
} on FirebaseFunctionsException catch (e) {
// Handling FirebaseFunctionsException
throw UserDataServiceException.fromRdevException(e.toRdevException());
} catch (e) {
throw UserDataServiceException(message: e.toString());
}
}