MissingBrowserFeature enum
An enumeration of features not supported by the current browsers.
While this information may not be useful to end users, it can be used to understand why drift has chosen a particular storage implementation in WasmDatabaseResult.
Values
-
The browser is missing support for shared workers.
- dedicatedWorkers → const MissingBrowserFeature
-
The browser is missing support for web workers in general.
-
The browser doesn't allow shared workers to spawn dedicated workers in their context.
While the specification for web workers explicitly allows this, this feature is only implemented by Firefox at the time of writing.
- fileSystemAccess → const MissingBrowserFeature
-
The browser does not support a synchronous version of the File System API
- indexedDb → const MissingBrowserFeature
-
The browser does not support IndexedDB.
-
The browser does not support shared array buffers and
Atomics.wait
.To enable this feature in most browsers, you need to serve your app with two special headers.
- workerError → const MissingBrowserFeature
-
An error occurred when trying to connect to a shared or dedicated drift worker.
This either indicates a bug in drift (with the worker crashing) or an issue in your setup (for instance, this could occur when the drift worker file is missing from your
web/
folder).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
MissingBrowserFeature> - A constant List of the values in this enum, in order of their declaration.