ebeae74390
Change-Id: Ia83e7226715ad1469d51e443a6a24505da71660a Reviewed-on: https://dart-review.googlesource.com/c/84941 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Dan Rubel <danrubel@google.com>
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>