data_layer/repositories/cache_manager/sembast_cache_manager_platform library

Exports the correct Sembast platform implementation based on the target platform.

This file uses conditional exports to load the appropriate implementation:

  • On native platforms (Android, iOS, macOS, Linux, Windows): uses sembast_io
  • On web platforms: uses sembast_web
  • Fallback: throws UnsupportedError

The web implementation uses dart.library.js_interop for WASM compatibility.

Properties

databaseFactory → Never
Stub database factory - should never be used The conditional exports should ensure the correct platform implementation is used
final

Functions

openDatabase({String? databasePath, required String databaseName}) Future<Database>
Open a database - stub implementation that throws