allowsAll method
Returns true
if this constraint allows all the versions that other
allows.
Implementation
@override
bool allowsAll(VersionConstraint other) {
if (other.isEmpty) return true;
if (other is Version) return allows(other);
if (other is VersionUnion) {
return other.ranges.every(allowsAll);
}
if (other is VersionRange) {
return !allowsLower(other, this) && !allowsHigher(other, this);
}
throw ArgumentError('Unknown VersionConstraint type $other.');
}