createDartExe function
Compiles the given dartFile
to an executable.
If destination
is given, the executable is saved in its location,
otherwise it's saved in the DartleCache's executables directory.
Returns the executable File.
Implementation
Future<File> createDartExe(File dartFile,
[File? destination, DartleCache? dartleCache]) async {
var exeLocation = destination ?? getExeLocation(dartFile, dartleCache);
await _dart2exe(dartFile, exeLocation);
return exeLocation;
}