which function

Future<String?> which(
  1. String command, {
  2. Map<String, String>? environment,
  3. bool includeParentEnvironment = true,
})

Find the command according to the paths or env variables (PATH)

Implementation

Future<String?> which(String command,
    {Map<String, String>? environment,
    bool includeParentEnvironment = true}) async {
  return whichSync(command,
      environment: environment,
      includeParentEnvironment: includeParentEnvironment);
}