pathChecker method

bool pathChecker(
  1. String path
)

Implementation

bool pathChecker(String path) {
  final directory = Directory(path);
  if (directory.existsSync()) {
    return true;
  } else {
    throw 'This path is not found: $path'.red();
  }
}