I didn’t notice any specific typos in my code, but by navigating to my Flutter SDK installation directory and running,
git status
git diff
I was able to see that some changes had been made to my Flutter SDK. I discarded them using Git, and that solved the problem.