forVersion static method
Returns the set of all deprecations done in or before version
.
Implementation
static Set<Deprecation> forVersion(Version version) {
var range = VersionRange(max: version, includeMax: true);
return {
for (var deprecation in Deprecation.values)
if (deprecation.deprecatedIn.andThen(range.allows) ?? false) deprecation
};
}