requestDatabaseNames method

Future<List<String>> requestDatabaseNames({
  1. String? securityOrigin,
  2. String? storageKey,
  3. StorageBucket? storageBucket,
})

Requests database names for given security origin. 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. Returns: Database names for origin.

Implementation

Future<List<String>> requestDatabaseNames(
    {String? securityOrigin,
    String? storageKey,
    storage.StorageBucket? storageBucket}) async {
  var result = await _client.send('IndexedDB.requestDatabaseNames', {
    if (securityOrigin != null) 'securityOrigin': securityOrigin,
    if (storageKey != null) 'storageKey': storageKey,
    if (storageBucket != null) 'storageBucket': storageBucket,
  });
  return (result['databaseNames'] as List).map((e) => e as String).toList();
}