requestDatabaseNames method
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();
}