difference method

  1. @override
VersionConstraint difference(
  1. VersionConstraint other
)
override

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

Implementation

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