WebStorageCapabilities class final

Snapshot of the Web storage capabilities of the current page.

Constructors

WebStorageCapabilities({required bool opfs, required bool syncAccessHandleInWorker, required bool syncAccessHandleOnCurrentThread, required bool createWritable, required bool fileSystemPickers, required bool fileSystemObserver, required bool storageBuckets, required bool sharedArrayBuffer, required bool crossOriginIsolated, required int? quotaBytes, required int? usageBytes, required bool persisted, String? workerError})
Creates a capability snapshot.
const

Properties

canUseChunkBackend → bool
Whether the chunk backend can be used (opfs and worker sync handles).
no setter
createWritable → bool
FileSystemFileHandle.createWritable() exists (Safari 26+).
final
crossOriginIsolated → bool
crossOriginIsolated === true.
final
fileSystemObserver → bool
FileSystemObserver exists (Chromium 133+).
final
fileSystemPickers → bool
showOpenFilePicker/showSaveFilePicker exist (Chromium only).
final
hashCode → int
The hash code for this object.
no setterinherited
opfs → bool
navigator.storage.getDirectory() exists (the OPFS namespace).
final
persisted → bool
navigator.storage.persisted().
final
quotaBytes → int?
navigator.storage.estimate().quota, when available.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sharedArrayBuffer → bool
SharedArrayBuffer exists (requires COOP/COEP isolation).
final
storageBuckets → bool
navigator.storageBuckets exists (Chromium 122+).
final
syncAccessHandleInWorker → bool
A dedicated worker successfully created a sync access handle.
final
syncAccessHandleOnCurrentThread → bool
The current thread exposes createSyncAccessHandle (always false on the main thread, in every browser, as of 2026).
final
usageBytes → int?
navigator.storage.estimate().usage, when available.
final
workerError → String?
Why the worker handshake failed, when it did.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited