Closed
Description
When looking at #58533, I was surprised to find that use_if_null_to_convert_nulls_to_bools
doesn't seem to handle cases like this:
List<String>? strings;
bool f() => strings?.isEmpty == false;
I'd expect the preferred way to express this would be:
List<String>? strings;
bool f() => strings?.isEmpty ?? false;
@a14n: do you recall if this was intentional (and I'm forgetting some rationale) or an oversight?
Thanks!