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