Is there an easy way to add Const as much as possible in Flutter
Open Vscode : settings -> open settings.json file Copy paste following lines
“editor.codeActionsOnSave”: {
“source.fixAll”: true
}
Android studio
In addition to linting, you can fix most cases of missing or redundant const automatically by running
dart fix --apply
Run
dart fix --dry-run
first to see what will change.
Very good write-up. I absolutely love this website.
Stick with it!