Index: sdk/lib/_internal/pub/lib/src/version.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/version.dart b/sdk/lib/_internal/pub/lib/src/version.dart |
index 1e92a3bda10a807e9ab615d13a66865e273b1f02..7577f9fe62524fc8c343e34b17a7aa840e0565dd 100644 |
--- a/sdk/lib/_internal/pub/lib/src/version.dart |
+++ b/sdk/lib/_internal/pub/lib/src/version.dart |
@@ -449,7 +449,7 @@ class VersionRange implements VersionConstraint { |
bool get isEmpty => false; |
- bool get isAny => !includeMin && !includeMax; |
+ bool get isAny => min == null && max == null; |
/// Tests if [other] matches falls within this version range. |
bool allows(Version other) { |