SqliteExtension.staticallyLinked constructor

SqliteExtension.staticallyLinked(
  1. String symbol
)

A sqlite extension assumed to be statically linked into the sqlite3 library loaded by this package.

In most sqlite3 distributions, including the one from sqlite3_flutter_libs, no extensions are available this way.

One example where an extension would be available is if you added a native dependency on the sqlite3/spellfix1 pod on iOS or macOS. On those platforms, you could then load the spellfix extension with SqliteExtension.staticallyLinked('sqlite3_spellfix_init').

Implementation

factory SqliteExtension.staticallyLinked(String symbol) {
  return SqliteExtensionImpl((library) => library.lookup(symbol));
}