forked from eatvio/eatvio_app
feat(setting): added account deleting
This commit is contained in:
@@ -67,4 +67,13 @@ class SettingsCubit extends Cubit<SettingsState> {
|
||||
await init();
|
||||
}
|
||||
}
|
||||
|
||||
Future<bool> deleteAccount() async {
|
||||
try {
|
||||
await profileRepository.deleteAccount();
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user