createOptions static method

WorkerOptions createOptions({
  1. String root = 'pkg_sqlite3_db/',
})

Creates WorkerOptions that can be sent to an VfsWorker instance which is responsible for hosting the file system on the other end.

Implementation

static WorkerOptions createOptions({String root = 'pkg_sqlite3_db/'}) {
  return WorkerOptions(
    synchronizationBuffer: RequestResponseSynchronizer.createBuffer(),
    communicationBuffer: SharedArrayBuffer(MessageSerializer.totalSize),
    root: root,
  );
}