parsePubspecYaml static method
Implementation
static Future<FlutterToDebian?> parsePubspecYaml() async {
File pubspec = File("pubspec.yaml");
if (!(await pubspec.exists())) {
pubspec = File("pubspec.yml");
}
if (await pubspec.exists()) {
try {
YamlMap yamlMap = loadYaml(await pubspec.readAsString());
return FlutterToDebian.fromPubspec(yamlMap);
} catch (e) {
rethrow;
}
}
return null;
}