in lib/src/version_constraint.dart [100:118]
VersionConstraint? matchCompatibleWith() {
if (!text.startsWith(compatibleWithChar)) return null;
text = text.substring(compatibleWithChar.length);
skipWhitespace();
var version = matchVersion();
if (version == null) {
throw FormatException('Expected version number after '
'"$compatibleWithChar" in "$originalText", got "$text".');
}
if (text.isNotEmpty) {
throw FormatException('Cannot include other constraints with '
'"$compatibleWithChar" constraint in "$originalText".');
}
return VersionConstraint.compatibleWith(version);
}