prefer_null_aware_operators

Group: style

Maturity: stable

Linter v0.1.80

Since info is static, may be stale
recommendedflutter

View all Lint Rules

Using the Linter

Prefer using null aware operators instead of null checks in conditional expressions.

BAD:

v = a == null ? null : a.b;

GOOD:

v = a?.b;