deleteAccount method
Implementation
Future<void> deleteAccount() async {
if (_userId is String) {
state = AsyncValue.loading();
try {
await _userService.deleteAccount(_userId!);
} catch (err) {
/// Restore data
state = AsyncValue.data(await _fetchUserData());
throw err;
}
}
}