open method

OpenSSSS open([
  1. String? identifier
])

Implementation

OpenSSSS open([String? identifier]) {
  identifier ??= defaultKeyId;
  if (identifier == null) {
    throw Exception('Dont know what to open');
  }
  final keyToOpen = keyIdFromType(identifier) ?? identifier;
  final key = getKey(keyToOpen);
  if (key == null) {
    throw Exception('Unknown key to open');
  }
  return OpenSSSS(ssss: this, keyId: keyToOpen, keyData: key);
}