Enable unnecessary_null_comparison check (#118849)

* Enable unnecessary_null_comparison outside of packages

* fix snippet

* enable for all
This commit is contained in:
Michael Goderbauer 2023-01-24 13:24:11 -08:00 committed by GitHub
parent 5dabe102a2
commit 50ed8a34b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 3 deletions

View file

@ -23,8 +23,6 @@ analyzer:
# allow self-reference to deprecated members (we do this because otherwise we have
# to annotate every member in every test, assert, etc, when we deprecate something)
deprecated_member_use_from_same_package: ignore
# Turned off until null-safe rollout is complete.
unnecessary_null_comparison: ignore
exclude:
- "bin/cache/**"
# Ignore protoc generated files

View file

@ -987,7 +987,6 @@ class _IntrinsicDimensionsCacheEntry {
/// AxisDirection get axis => _axis;
/// AxisDirection _axis = AxisDirection.down; // or initialized in constructor
/// set axis(AxisDirection value) {
/// assert(value != null); // same checks as in the constructor
/// if (value == _axis) {
/// return;
/// }