This helped me.
> Deleting \~/.dartServer/.analysis-driver/ might be worth a try.
From: [Alt+Enter stopped working for Dart files in IntelliJ](https://stackoverflow.com/questions/54946704/altenter-stopped-working-for-dart-files-in-intellij#comment96656851_54946704)
It is caused by Stack overflow in Dart Analyzer Server.