logout method
Logs the user out.
If you want to log in the user see login.
Implementation
Future<void> logout() async {
state = AsyncLoading();
await localConfigService.deleteConfig();
state = AsyncError("User logged out", StackTrace.current);
}