bool containsDependency(String name) { final pubspec = this.pubspec; final text = pubspec.readAsStringSync(); final result = text.contains(name); return result; }