pubspecYamlGetSdkBoundaries function
Get sdk boundaries
Implementation
VersionBoundaries? pubspecYamlGetSdkBoundaries(Map? map) {
// environment:
// sdk: '>=2.8.0 <3.0.0'
var rawSdk = mapValueFromParts<Object?>(map, ['environment', 'sdk']);
if (rawSdk is String) {
return VersionBoundaries.parse(rawSdk);
}
return null;
}