allows method
Whether a concrete SDK version is allowed by this semver range.
Implementation
bool allows(String sdkVersion) {
final constraint = tryParseConstraint();
final version = tryParseVersion(sdkVersion);
return constraint != null && version != null && constraint.allows(version);
}