units 0.0.1 copy "units: ^0.0.1" to clipboard
units: ^0.0.1 copied to clipboard

outdatedDart 1 only

A starting point for measurement units in Dart.

units #

A starting point for measurement units in Dart.

Included right now:

  • Speed
  • Length

Usage #

A simple usage example:

    import 'package:units/units.dart';

    main() {
        var speed = new Speed.fromKilometerPerHour(value: 360.0);
        print('360 km/h are ${speed.inMeterPerSecond} m/s');
        print('360 km/h are ${speed.inMeterPerSecond} mi/h');
    }
0
likes
0
pub points
14%
popularity

Publisher

verified publisheryeradis.com

A starting point for measurement units in Dart.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on units