How to find the Dart SDK path

When you open your first Dart file in IntelliJ, it may ask for the path to the Dart SDK.

On MacOS, you should be able ‘brew info dart’ to get the path. In my case, it was: /opt/homebrew/opt/dart/libexec

Add that to the preferences pane for Dart, enable it for your project, you should be good to go.