existConfig static method

bool existConfig(
  1. String? dir
)

Implementation

static bool existConfig(String? dir) {
  var cfgPath = CliHelper.configPath(dir);
  if (cfgPath != null) {
    var file = File(cfgPath);
    if (file.existsSync()) {
      return true;
    } else {
      return false;
    }
  } else {
    return false;
  }
}