requestData method

Future<RequestDataResult> requestData(
  1. String databaseName,
  2. String objectStoreName,
  3. String indexName,
  4. int skipCount,
  5. int pageSize, {
  6. String? securityOrigin,
  7. String? storageKey,
  8. StorageBucket? storageBucket,
  9. KeyRange? keyRange,
})

Requests data from object store or index. securityOrigin At least and at most one of securityOrigin, storageKey, or storageBucket must be specified. Security origin. storageKey Storage key. storageBucket Storage bucket. If not specified, it uses the default bucket. databaseName Database name. objectStoreName Object store name. indexName Index name, empty string for object store data requests. skipCount Number of records to skip. pageSize Number of records to fetch. keyRange Key range.

Implementation

Future<RequestDataResult> requestData(String databaseName,
    String objectStoreName, String indexName, int skipCount, int pageSize,
    {String? securityOrigin,
    String? storageKey,
    storage.StorageBucket? storageBucket,
    KeyRange? keyRange}) async {
  var result = await _client.send('IndexedDB.requestData', {
    'databaseName': databaseName,
    'objectStoreName': objectStoreName,
    'indexName': indexName,
    'skipCount': skipCount,
    'pageSize': pageSize,
    if (securityOrigin != null) 'securityOrigin': securityOrigin,
    if (storageKey != null) 'storageKey': storageKey,
    if (storageBucket != null) 'storageBucket': storageBucket,
    if (keyRange != null) 'keyRange': keyRange,
  });
  return RequestDataResult.fromJson(result);
}