unnecessary_null_aware_assignments

Group: style

Maturity: stable

Linter v0.1.30

Since info is static, may be stale

View all Lint Rules

Using the Linter

AVOID null in null-aware assignment.

Using null on the right-hand side of a null-aware assignment effectively makes the assignment redundant.

GOOD:

var x;
x ??= 1;

BAD:

var x;
x ??= null;