In case someone else experiences this issues:
In the lower left select Dart Analysis (where Terminal etc is located)
Goto Analyzer Settings
Select scope analysis...