inRange method
Giving a version
that is stastified with this record.
If excludePreRelease
set as true
, the result will consider the given
version
's pre-release field is nulled already.
Implementation
bool inRange(SemVer version, {bool excludePreRelease = true}) =>
constraintOperator.matched(affectedVersion, version, excludePreRelease);