equals static method
Compares two pubspec to see if they have the same content.
Implementation
static bool equals(PubSpec lhs, PubSpec rhs) {
if (lhs.name != rhs.name) {
return false;
}
// if (lhs.author != rhs.author) return false;
if (lhs.version != rhs.version) {
return false;
}
// if (lhs.homepage != rhs.homepage) return false;
// if (lhs.documentation != rhs.documentation) return false;
// if (lhs.description != rhs.description) return false;
// if (lhs.publishTo != rhs.publishTo) return false;
// if (lhs.environment != rhs.environment) return false;
if (!const MapEquality<String, Dependency>()
.equals(lhs.dependencies, rhs.dependencies)) {
return false;
}
return true;
}