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. KeyRange? keyRange,
})

Requests data from object store or index. securityOrigin At least and at most one of securityOrigin, storageKey must be specified. Security origin. storageKey Storage key. 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, 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 (keyRange != null) 'keyRange': keyRange,
  });
  return RequestDataResult.fromJson(result);
}