remove_ deprecations_ in_ breaking_ versions
                  Deprecation in major version.
Details
#
                  DO Remove deprecated elements in breaking version numbers.
                  Breaking version numbers are on the form x.0.0 or 0.x.0.
                
For example given a package with a pubspec.yaml file containing:
name: p
version: 2.0.0
environment:
  sdk: ^3.9.0
                    
                    
                    
                  BAD:
@deprecated
void f() {}
                    
                    
                    
                  GOOD:
// (f is removed).
                    
                    
                    
                  GOOD:
name: p
version: 1.0.1
environment:
  sdk: ^3.9.0
                    
                    
                    
                  
Enable
#
                  To enable the remove_deprecations_in_breaking_versions rule, add remove_deprecations_in_breaking_versions
                   under
                  linter > rules in your analysis_options.yaml
                   file:
                
linter:
  rules:
    - remove_deprecations_in_breaking_versions
                    
                    
                    
                  
                  If you're instead using the YAML map syntax to configure linter rules,
                  add remove_deprecations_in_breaking_versions: true under linter > rules:
                
linter:
  rules:
    remove_deprecations_in_breaking_versions: true
                    
                    
                    
                  Unless stated otherwise, the documentation on this site reflects Dart 3.9.2. Report an issue.