loadPubspecConfigOrNull function

Config? loadPubspecConfigOrNull(
  1. File pubspecFile, {
  2. File? buildFile,
})

Implementation

Config? loadPubspecConfigOrNull(File pubspecFile, {File? buildFile}) {
  try {
    return loadPubspecConfig(pubspecFile, buildFile: buildFile);
  } on FileSystemException catch (e) {
    stderr.writeln(e.message);
  } on InvalidSettingsException catch (e) {
    stderr.writeln(e.message);
  }
  return null;
}