If I am not sure a list is null or not, I could do
final something = myList?[0].property;
What if I knew myList
existed but was not sure there is an element in it?
Do I need to manually check that isNotEmpty?
final something = myList[0]?.property;
says The receiver can't be null, so the null-aware operator '?.' is unnecessary.