bool allowsHigher()

in lib/src/utils.dart [29:37]


bool allowsHigher(VersionRange range1, VersionRange range2) {
  if (range1.max == null) return range2.max != null;
  if (range2.max == null) return false;

  var comparison = range1.max!.compareTo(range2.max!);
  if (comparison == 1) return true;
  if (comparison == -1) return false;
  return range1.includeMax && !range2.includeMax;
}