loadLibrary top-level property
Implementation
final DynamicLibrary Function() loadLibrary = () {
if (Platform.isWindows) {
return DynamicLibrary.open('cronet.86.0.4240.198.dll');
} else if (Platform.isMacOS) {
return DynamicLibrary.open('libcronet.86.0.4240.198.dylib');
} else if (Platform.isIOS) {
return DynamicLibrary.process();
} else if (Platform.isAndroid) {
return DynamicLibrary.open('libcronet.86.0.4240.198.so');
}
throw UnimplementedError();
};