in lib/src/version_range.dart [415:427]
int _compareMax(VersionRange other) {
if (max == null) {
if (other.max == null) return 0;
return 1;
} else if (other.max == null) {
return -1;
}
var result = max!.compareTo(other.max!);
if (result != 0) return result;
if (includeMax != other.includeMax) return includeMax ? 1 : -1;
return 0;
}