logout method

Future<void> logout()

Implementation

Future<void> logout() async {
  _log.logTyped(AuthRepositoryLog('logout()'));
  // Set the state to loading
  state = const AsyncValue.loading();
  try {
    await _authService.logout();
  } catch (err) {
    state = const AsyncValue.data(AuthRepositoryState());
    throw err;
  }
}