dart_modernize 0.9.2
dart_modernize: ^0.9.2 copied to clipboard
A CLI tool that modernizes Dart and Flutter codebases by applying idiomatic patterns, enforcing conventions, and automating tedious upgrades.
Examples #
Install the CLI:
dart pub global activate dart_modernize
Preview every change in the current project without writing anything:
dart_modernize --dry-run
Apply the changes:
dart_modernize
Target a folder:
dart_modernize lib/
Turn a pass off:
dart_modernize --no-primary-constructors
Run dart_modernize --help for the full list of options.