The Dart style guide recommends var inside functions and explicit types only for method signatures and properties so we should avoid adding types just to keep the editor happy.