inRange method

bool inRange(
  1. SemVer version, {
  2. bool excludePreRelease = true,
})
override

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);