inRange method
Check version
matched at least one of the OrConstraintRecordSection
in constraints
.
If excludePreRelease
set true
, it assume be false
when given
version
has SemVer.preRelease when no constraints
has pre-release
information.
Implementation
@override
bool inRange(SemVer version, {bool excludePreRelease = true}) => _constraints
.any((vcs) => vcs.inRange(version, excludePreRelease: excludePreRelease));