// Add the following lines to your vscode settings.json // It should automatically fix lint warnings whenever you save a dart file "editor.codeActionsOnSave": { "source.fixAll": true }// If you want to fix the dart code warnings all at once dart fix --apply