dart-archive / dart2_fix

A tool to migrate API usage to Dart 2
https://pub.dartlang.org/packages/dart2_fix
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

Add support for dart2_constant #18

Closed nex3 closed 6 years ago

nex3 commented 6 years ago

The dart2_constant package provides camel-case constant definitions that work on both Dart 1 and Dart 2, for packages that want to support both. It would be great if this package could add support for migrating to uses of these polyfill constants in addition to using the Dart 2 constants directly.

devoncarew commented 6 years ago

Ah, migrating from package:dart2_constant's utf8 to dart:convert's utf8?

nex3 commented 6 years ago

That, but also migrating from Dart 1's UTF8 to package:dart2_constant's convert.utf8.

devoncarew commented 6 years ago

Thanks for the suggestion; I think I'm going to mark this as out of scope for this package.