getStorageItems method

Future<Map<String, dynamic>> getStorageItems(
  1. String id,
  2. StorageArea storageArea, {
  3. List<String>? keys,
})

Gets data from extension storage in the given storageArea. If keys is specified, these are used to filter the result. id ID of extension. storageArea StorageArea to retrieve data from. keys Keys to retrieve.

Implementation

Future<Map<String, dynamic>> getStorageItems(
    String id, StorageArea storageArea,
    {List<String>? keys}) async {
  var result = await _client.send('Extensions.getStorageItems', {
    'id': id,
    'storageArea': storageArea,
    if (keys != null) 'keys': [...keys],
  });
  return result['data'] as Map<String, dynamic>;
}