getStorageKey method

Future<SerializedStorageKey> getStorageKey({
  1. FrameId? frameId,
})

Returns storage key for the given frame. If no frame ID is provided, the storage key of the target executing this command is returned.

Implementation

Future<SerializedStorageKey> getStorageKey({page.FrameId? frameId}) async {
  var result = await _client.send('Storage.getStorageKey', {
    if (frameId != null) 'frameId': frameId,
  });
  return SerializedStorageKey.fromJson(result['storageKey'] as String);
}