forVersion static method

Set<Deprecation> forVersion(
  1. Version version
)

Returns the set of all deprecations added in or before version.

Implementation

static Set<Deprecation> forVersion(Version version) => forVersionInternal(
  version,
  EvaluationContext.currentOrNull?.logger ?? Logger.defaultLogger,
);