SIGN IN SIGN UP

Ignore dead_code hints for weak-only null checks. (#63007)

* Ignore dead_code hints for weak-only null checks.

When https://github.com/dart-lang/sdk/issues/41985 is fixed, the
analyzer will begin detecting dead code due to "unnecessary" null
checks.  Since we want to retain null checks in Flutter even when they
appear unnecessary (in order to preserve runtime behavior in weak
mode), we need to suppress these dead code hints.

* Add comments explaining why we're ignoring dead_code hints
P
Paul Berry committed
a4254c788f96c915e3be1d1c7f544ccbd0caf5d2
Parent: d7883e3
Committed by GitHub <noreply@github.com> on 8/11/2020, 1:18:39 PM