containsPubspec method
Implementation
Future<bool> containsPubspec() async {
final file = File('${_workdir.path}/pubspec.yaml');
if (file.existsSync()) {
return true;
} else {
final shortFile = File('${_workdir.path}/pubspec.yml');
if (shortFile.existsSync()) {
return true;
}
return false;
}
}