regIsOnUserPath function

bool regIsOnUserPath(
  1. String path
)

Returns true if the given path is on the user's path.

Note: this does not check the system path.

Implementation

bool regIsOnUserPath(String path) {
  final paths = _getPaths();
  return _isOnUserPath(path, paths);
}