pubspecYamlGetSdkBoundaries function

VersionBoundaries? pubspecYamlGetSdkBoundaries(
  1. Map? map
)

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;
}