requestDatabaseNames method

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

Requests database names for given security origin. securityOrigin At least and at most one of securityOrigin, storageKey must be specified. Security origin. storageKey Storage key. Returns: Database names for origin.

Implementation

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