getYamlFile function

Future<File?> getYamlFile()

获取项目pubspec.yaml文件

Implementation

Future<File?> getYamlFile() async {
  try {
    return File(path.join(await PROJECT_PATH, 'pubspec.yaml'));
  } on Exception catch (err) {
    logger.e(err.toString());
    return null;
  }
}