Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

add 3.0 doc to no_duplicate_case_values #4159

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/src/rules/no_duplicate_case_values.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ switch (v) {
}
```

NOTE: this lint only reports duplicate cases in libraries opted in to Dart 2.19
and below. In Dart 3.0 and after, duplicate cases are reported as dead code
by the analyzer.
''';

class NoDuplicateCaseValues extends LintRule {
Expand Down