getDynamicLibrary function

DynamicLibrary? getDynamicLibrary()

Implementation

DynamicLibrary? getDynamicLibrary() {
  try {
    DynamicLibrary nativeDynamicLibrary = DynamicLibrary.open(join(kkLibraryPath ?? (Platform.isLinux ? '\$ORIGIN' : ''), nativeDynamicLibraryName));
    return nativeDynamicLibrary;
  } catch (e) {
    return null;
  }
}