whichEx function Null safety

bool whichEx(
  1. String exeName
)

Implementation

bool whichEx(String exeName) {
  return which(exeName).found ||
      (Platform.isWindows &&
          (which('$exeName.exe').found || which('$exeName.bat').found));
}