createLibraryImpl function

DynamicLibrary createLibraryImpl()

Implementation

DynamicLibrary createLibraryImpl() {
  const base = 'btleplug';

  if (Platform.isIOS || Platform.isMacOS) {
    return DynamicLibrary.executable();
  } else if (Platform.isWindows) {
    return DynamicLibrary.open('$base.dll');
  } else {
    return DynamicLibrary.open('lib$base.so');
  }
}