This helped me.
Deleting ~/.dartServer/.analysis-driver/ might be worth a try.
From: Alt+Enter stopped working for Dart files in IntelliJ
It is caused by Stack overflow in Dart Analyzer Server.