createLibraryImpl function

DynamicLibrary createLibraryImpl()

Implementation

DynamicLibrary createLibraryImpl() {
  if (Platform.isIOS) {
    return DynamicLibrary.open('$_flutterLibName.framework/$_flutterLibName');
  }
  if (Platform.isWindows) {
    return DynamicLibrary.open('$_base.dll');
  }
  if (Platform.isMacOS) {
    return DynamicLibrary.executable();
  }
  return DynamicLibrary.open('lib$_base.so');
}