logout method
Implementation
Future<bool> logout() async {
// remove current client from list
final client = _clients.removeAt(_index);
_index = _index > 0 ? _index - 1 : 0;
_log.info('Remaining clients: ${_clients.length}');
await _persistSessions();
unawaited(
client.logout().catchError((e) {
_log.warning('Logout failed', e);
return e is int;
}),
); // Explicitly-ignored fire-and-forget.
return _clients.isNotEmpty;
}