dartfix 0.1.0 dartfix: ^0.1.0 copied to clipboard
A tool for migrating Dart source to newer versions of the Dart SDK, and fixing common issues.
dartfix #
dartfix is a tool for migrating Dart source to newer versions of the Dart SDK, and fixing common issues including:
- Converting classes used as mixins to use the new mixin syntax
- Converting double literals to int literals where applicable
- Moving named constructor type arguments from the name to the type
Usage #
To activate the package
pub global activate dartfix
Once activated, dart fix can be run using
pub global run dartfix:fix <target directory>
or if you have setup your path to include the pub bin directory, then simply
dartfix <target directory>