listDetachedSessions method

Future<List<DetachedSessionInfo>> listDetachedSessions({
  1. required String nodeId,
})

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();