difference method

VersionConstraint difference (VersionConstraint other)
override

Returns a VersionConstraint that allows Versions allowed by this but not other.

Implementation

VersionConstraint difference(VersionConstraint other) =>
    other.allows(this) ? VersionConstraint.empty : this;