instance static method

Future<SQLiteLibrary> instance({
  1. String? path,
  2. String? mountDir,
})

Implementation

static _async.Future<SQLiteLibrary> instance({String? path, String? mountDir}) async {
  if (io.Platform.isIOS) {
    return SQLiteLibrary._(ffi.DynamicLibrary.process());
  } else if (path != null) {
    return SQLiteLibrary._(ffi.DynamicLibrary.open(path));
  } else {
    throw Exception('Platform other than iOS required explicit path to create dynamic library.');
  }
}