checkExistsSync method

  1. @nonVirtual
void checkExistsSync()

Check if executable exists, as per existsSync.

Throws an ArgumentError, if executable does not exist

Implementation

@nonVirtual
void checkExistsSync() {
  if (existsSync()) return;
  throw ArgumentError.value(
    executable,
    "executable",
    """
The executable (original=$originalExecutable) does not exist, maybe it is not in your PATH ?
PATH: ${io.Platform.environment["PATH"]}
""",
  );
}