toolPath static method
Get the full path to command
on this system, or null if the command
is not available.
Implementation
static String? toolPath(String command) {
final result = Process.runSync('command', ['-v', command]);
return result.stdout.toString().trim();
}