getConfig method
Implementation
Future<Config?> getConfig() async {
Config config;
try {
config = await loadPubspecConfig(pubspecFile);
} on InvalidSettingsException catch (e) {
stderr.writeln(e.message);
return null;
} on FileSystemException catch (e) {
stderr.writeln(e.message);
return null;
}
return config;
}