chosenImplementation property

WasmStorageImplementation chosenImplementation
final

For your reference, the chosen storage implementation.

Depending on the features available in the browser your app runs on, drift will use the most reliable implementation in WasmStorageImplementation.

If the implementation can't store data reliably (WasmStorageImplementation.unsafeIndexedDb) or not at all (WasmStorageImplementation.inMemory), you may want to show a warning to the user if persistence is important in your app.

Implementation

final WasmStorageImplementation chosenImplementation;