Ch 2 - type 'Null' is not a subtype of type 'List<Ingredient>' of 'function result'

In Chapter 2 towards the end, " Showing the ingredients", I copy/pasted the Expanded code but got this error message rendered in the recipe detail view:

type 'Null' is not a subtype of type 'List<Ingredient>' of 'function result'

Thought that maybe the spaghetti ingredient was causing the issue, but even after adding a measurement, still getting the error.

Ingredient(4, '', 'Frozen Meatballs',),
Changed to
Ingredient(4, 'item', 'Frozen Meatballs',),

I have zero Flutter/Dart experience and no idea where to start looking for this error. Android Studio is not showing any errors. Help appreciated, thanks in advance.

@ijjtseng, have you taken a look at the final project code and compared it to your code to see if there is a difference?

@spgms Thanks for the reminder! I checked but there was nothing different.

Looking deeper into the forum, I found this Type 'Null' is not a subtype of type 'List<Ingredient>' of 'function result'

Pretty sure I did a hot reload/restart but still had the error that day. Then I took a break from Flutter, shut down, and came back the next day – everything was working again.