dartfix 0.1.7 copy "dartfix: ^0.1.7" to clipboard
dartfix: ^0.1.7 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

// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// This file contains code that is modified by running dartfix.
// After running dartfix, this content matches a file in the "fixed" directory.

// Dart will automatically convert int literals to doubles.
// Running dartfix converts this double literal to an int
// if --double-to-int is specified on the command line.
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 {}

void main(List<String> args) {
  if (args.length == 0) {
    print('myDouble = ${MyClass().someValue}');
  }
}
7
likes
30
pub points
12%
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

BSD-3-Clause (LICENSE)

Dependencies

analysis_server_client, args, cli_util, path, pub_semver

More

Packages that depend on dartfix