leaseIdFor static method

String leaseIdFor(
  1. String profileId,
  2. String workspacePath
)

The deterministic lease id of a profile/workspace pair.

Implementation

static String leaseIdFor(String profileId, String workspacePath) {
  final key = sha256
      .convert(utf8.encode('$profileId|$workspacePath'))
      .toString();
  return 'project-session-${key.substring(0, 24)}';
}