loadDylib function
Implementation
DynamicLibrary loadDylib(String path) {
final api = Abi.current();
if (Platform.isMacOS && (api == Abi.macosX64 || api == Abi.macosArm64)) {
return DynamicLibrary.executable();
} else {
return Platform.isIOS
? DynamicLibrary.process()
: DynamicLibrary.open(path);
}
}