open static method

Future<IndexedDbFileSystem> open({
  1. required String dbName,
  2. String vfsName = 'indexeddb',
  3. Random? random,
})

Loads an IndexedDB file system identified by the dbName.

Each file system with a different name will store an independent file system.

Implementation

static Future<IndexedDbFileSystem> open(
    {required String dbName,
    String vfsName = 'indexeddb',
    Random? random}) async {
  final fs = IndexedDbFileSystem._(dbName, vfsName: vfsName, random: random);
  await fs._asynchronous.open();
  await fs._readFiles();
  return fs;
}