Open
Description
Currently use_null_aware_elements
works on cases such as
String? getValue() => 'abc';
final value = getValue();
final x = {
if (value != null) 'key': value,
};
which produces
String? getValue() => 'abc';
final value = getValue();
final x = {
'key': ?value,
};
but when we use chain calls it does not work
String? getValue() => 'abc';
final value = getValue();
final x = {
if (value != null) 'key': value.length,
};
even through it is still valid to transform it using null aware elements to
String? getValue() => 'abc';
final value = getValue();
final x = {
'key': ?value?.length,
};