Group: style
Maturity: removed
Dart SDK: >= 2.19.0 • (Linter v1.30.0)
Since info is static, may be staleUnsupported since Dart language version 2.12.0.
DO use sound null safety, by not specifying a dart version lower than 2.12
.
BAD:
// @dart=2.8
a() {
}
GOOD:
b() {
}
To enable the enable_null_safety
lint,
add enable_null_safety
under linter > rules in your
analysis_options.yaml
file:
linter:
rules:
- enable_null_safety