matchesMax method
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;
}