getMetadata method

Future<GetMetadataResult> getMetadata(
  1. String databaseName,
  2. String objectStoreName, {
  3. String? securityOrigin,
  4. String? storageKey,
  5. StorageBucket? storageBucket,
})

Gets metadata of an object store. 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.

Implementation

Future<GetMetadataResult> getMetadata(
    String databaseName, String objectStoreName,
    {String? securityOrigin,
    String? storageKey,
    storage.StorageBucket? storageBucket}) async {
  var result = await _client.send('IndexedDB.getMetadata', {
    'databaseName': databaseName,
    'objectStoreName': objectStoreName,
    if (securityOrigin != null) 'securityOrigin': securityOrigin,
    if (storageKey != null) 'storageKey': storageKey,
    if (storageBucket != null) 'storageBucket': storageBucket,
  });
  return GetMetadataResult.fromJson(result);
}