matchesMax method

bool matchesMax(
  1. Version version
)

True if a version match the max boundary

Implementation

bool matchesMax(Version version) {
  if (max != null) {
    if (max!.include) {
      if (version > max!.value) {
        return false;
      }
    } else if (version >= max!.value) {
      return false;
    }
  }
  return true;
}