whichExecutablePath function
Returns an executable
binary path.
- If
useCache
istrue
will use the cached resolutions.
Implementation
String whichExecutablePath(String executable,
{bool useCache = true, String? def}) {
executable = executable.trim();
if (useCache) {
var cached = _cachedExecutablesPaths[executable];
if (cached != null) return cached;
}
var path = _whichExecutablePathImpl(executable, def);
_cachedExecutablesPaths[executable] = path;
return path;
}