Click the little drop-down arrow to the right of the green Run icon:
Then select "Manage Launches".
Then, find your run config for your app.
Add --minify
to the "Compiler flags".
To find a list of available flags, run dart2js --help
from the command line (assuming the Dart SDK is on your path).