You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FlutterDownloaderPlugin.setPluginRegistrantCallback(registerPlugins) in AppDelegate is giving me error A C function pointer can only be formed from a reference to a 'func' or a literal closure when I updated to Xcode 12.5
This got solved by using the below snippet instead of FlutterDownloaderPlugin.setPluginRegistrantCallback(registerPlugins)
FlutterDownloaderPlugin.setPluginRegistrantCallback({ registry in if (!registry.hasPlugin("FlutterDownloaderPlugin")) { FlutterDownloaderPlugin.register(with: registry.registrar(forPlugin: "FlutterDownloaderPlugin")!) } })
The text was updated successfully, but these errors were encountered:
FlutterDownloaderPlugin.setPluginRegistrantCallback(registerPlugins)
in AppDelegate is giving me errorA C function pointer can only be formed from a reference to a 'func' or a literal closure
when I updated to Xcode 12.5This got solved by using the below snippet instead of
FlutterDownloaderPlugin.setPluginRegistrantCallback(registerPlugins)
FlutterDownloaderPlugin.setPluginRegistrantCallback({ registry in if (!registry.hasPlugin("FlutterDownloaderPlugin")) { FlutterDownloaderPlugin.register(with: registry.registrar(forPlugin: "FlutterDownloaderPlugin")!) } })
The text was updated successfully, but these errors were encountered: