databases static method

Future<List<String>?> databases()

Returns all IndexedDB database names accessible from the current context.

This may return null if IDBFactory.databases() is not supported by the current browser.

Implementation

static Future<List<String>?> databases() async {
  return (await indexedDB!.databases().toDart)
      .toDart
      .map((e) => e.name)
      .toList();
}