openWebSqlite method

Future<WebSqlite> openWebSqlite(
  1. WebSqliteOptions options
)

Opens a WebSqlite instance for the given options.

This method can be overriden in scenarios where the way WebSqlite is opened needs to be customized. Implementers should be aware that the result of this method is cached and will be re-used by the open factory when provided with the same options again.

Implementation

Future<WebSqlite> openWebSqlite(WebSqliteOptions options) async {
  return WebSqlite.open(
    worker: Uri.parse(options.workerUri),
    wasmModule: Uri.parse(options.wasmUri),
  );
}