listDetachedSessions method
Lists only the caller's detached sessions on nodeId.
Implementation
Future<List<DetachedSessionInfo>> listDetachedSessions({
required String nodeId,
}) async => (await listSessions(
nodeId: nodeId,
)).where((s) => s.state == SessionState.detached).toList();