Waiting for another flutter command to release the startup lock

I use a Mac with Visual Studio Code and this is what worked:

Shutdown your PC and switch it on again. Don’t use the restart function. I restarted 2 times and it didn’t work. Only shutdown worked.

PS: I tried out the following:

  1. Delete lockfile;
  2. Run killall -9 dart;
  3. Restart my PC.
https://stackoverflow.com/questions/51679269/waiting-for-another-flutter-command-to-release-the-startup-lock