dartfix 0.1.4 copy "dartfix: ^0.1.4" to clipboard
dartfix: ^0.1.4 copied to clipboard

discontinued
outdated

A tool for migrating Dart source to newer versions of the Dart SDK, and fixing common issues.

example/example.dart

// This file contains code that is modified by running dartfix.
// After running dartfix, the content of this file matches example-fixed.dart.

// Dart will automatically convert int literals to doubles.
// Running dartfix converts this double literal to an int.
const double myDouble = 4.0;

// This class is used as a mixin but does not use the new mixin syntax.
// Running dartfix converts this class to use the new syntax.
class MyMixin {
  final someValue = myDouble;
}

class MyClass with MyMixin {}

main() {
  print('myDouble = ${MyClass().someValue}');
}
7
likes
0
pub points
7%
popularity

Publisher

unverified uploader

A tool for migrating Dart source to newer versions of the Dart SDK, and fixing common issues.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

analysis_server_client, args, cli_util, path, pub_semver

More

Packages that depend on dartfix