OpenDynamicLibrary class

Manages functions that define how to load the DynamicLibrary for sqlite.

The default behavior will use'') on Linux and Android,'libsqlite3.dylib') on iOS and macOS and'sqlite3.dll') on Windows.

The default behavior can be overridden for a specific OS by using overrideFor. To override the behavior on all platforms, use overrideForAll.


hashCode int
The hash code for this object. [...]
read-only, inherited
os OperatingSystem
Returns the current OperatingSystem as read from the Platform getters.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
openSqlite() DynamicLibrary
Opens the DynamicLibrary from which moor_ffi is going to DynamicLibrary.lookup sqlite's methods that will be used. This method is meant to be called by moor_ffi only.
overrideFor(OperatingSystem os, OpenLibrary open) → void
Makes moor_ffi use the open function when running on the specified os. This can be used to override the loading behavior on some platforms. To override that behavior on all platforms, consider using overrideForAll. This method must be called before opening any database. [...]
overrideForAll(OpenLibrary open) → void
Makes moor_ffi use the OpenLibrary function for all Dart platforms. If this method has been called, it takes precedence over overrideFor. This method must be called before opening any database. [...]
reset() → void
Clears all associated open helpers for all platforms.
toString() String
Returns a string representation of this object.


operator ==(dynamic other) bool
The equality operator. [...]