After migrating to null-safety, Curl is no longer working due to an error that occurs when casting an old List type to List<String?>. This error is encountered while trying to use the Process.run() method to send a request.
var prf = Process.run(executable ?? 'curl', args as List<String>,
stdoutEncoding: null);
After migrating to null-safety, Curl is no longer working due to an error that occurs when casting an old List type to List<String?>. This error is encountered while trying to use the Process.run() method to send a request.