sqfliteFfiInit function

void sqfliteFfiInit()

Initialize ffi loader, call it once before using databaseFactoryFfi.

Call in main (or in setUpAll in tests) until you find a loader for your needs.

Currently this only performs windows specific operations (loading SQLite in the main isolate), it does nothing on other platforms and on the web so it is safe to call everywhere. Implementation is provided for reference only.

Implementation

void sqfliteFfiInit() {
  if (Platform.isWindows) {
    windowsInit();
  }
}