I want to load a C Dynamic Library
in flutter
, how can I specify the path, and open it? is it possible to add .so
file to the asset
folder?
final dynamicLibrary = DynamicLibrary.open(libraryPath);
final Pointer<Utf8> Function() _someMethod = dynamicLibrary
.lookup<NativeFunction<Pointer<Utf8> Function()>>(
'native_some_method',
)
.asFunction();