"Member not found" error when checking errors on a code expression

A couple of times I've run into the "Member not found" error when writing code expressions. I'm struggling to work out what exactly this error is telling me, and therefore how to debug it.

I've tried running the same piece of code in DartPad and it works fine.

Any ideas why I'm getting this error?

2
6 replies