intersect method
Returns a VersionConstraint
that only allows Versions allowed by both
this and other
.
Implementation
@override
VersionConstraint intersect(VersionConstraint other) =>
other.allows(this) ? this : VersionConstraint.empty;
Returns a VersionConstraint
that only allows Versions allowed by both
this and other
.
@override
VersionConstraint intersect(VersionConstraint other) =>
other.allows(this) ? this : VersionConstraint.empty;