IndexedDbBackend constructor

IndexedDbBackend({
  1. required String dbName,
  2. int chunkSize = ChunkedBackend.defaultChunkSize,
})

Throws UnsupportedError: IndexedDB requires a browser.

Implementation

IndexedDbBackend({
  required String dbName,
  super.chunkSize = ChunkedBackend.defaultChunkSize,
}) : super(backing: const _UnreachableBacking()) {
  throw UnsupportedError(
    'IndexedDbBackend("$dbName") requires dart:js_interop and is web-only. '
    'On native, construct a Cellar with the default constructor — it '
    'selects the correct backend automatically — or use FileSystemBackend '
    'directly from cellar_lowlevel.dart.',
  );
}