cooler-king / quantity

A package to make it easy to work with physical quantities.
MIT License
19 stars 4 forks source link

Enable quantity to support Dart 1 and Dart 2 API with dart2_constant #23

Closed Stargator closed 6 years ago

Stargator commented 6 years ago

I branched off of strong-mode (see above to verify my request is to merge this branch there) and replaced Dart 2 API's new constants with the same constants defined in dart2_constant.

This will allow quantity to still be able to run in Dart 2 and Dart 1.

Primarily, I used dart2_constant/core.dart and dart2_constant/math.dart, which I named polyfill_core and polyfill_math respectively, to avoid confusion with SDK API.

cooler-king commented 6 years ago

Thanks for the contribution! Great idea! I'll review this in the next few days.