Index: lib/src/version.dart |
diff --git a/lib/src/version.dart b/lib/src/version.dart |
index f2662b9aaada76cec70f5f63ccc9cebfa0c7dcaa..2d43a1aa811a33def3434000a0e25cb304f49eda 100644 |
--- a/lib/src/version.dart |
+++ b/lib/src/version.dart |
@@ -267,6 +267,9 @@ class Version implements VersionConstraint, VersionRange { |
return new VersionConstraint.unionOf([this, other]); |
} |
+ VersionConstraint difference(VersionConstraint other) => |
+ other.allows(this) ? VersionConstraint.empty : this; |
+ |
int compareTo(VersionRange other) { |
if (other is Version) { |
if (major != other.major) return major.compareTo(other.major); |