xxxxxxxxxx
// If you want to fix the dart code warnings all at once
dart fix --apply
xxxxxxxxxx
// 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
}