Dart Analyze logoDart Analyze/
DRT-W1186

Use a non-nullable type for a final variable initialized with a non-nullable valueDRT-W1186

Major severityMajor
Anti-pattern categoryAnti-pattern

Use a non-nullable type for a final variable initialized with a non-nullable value.

BAD:

final int? i = 1;

GOOD:

final int i = 1;