measures 0.0.2 copy "measures: ^0.0.2" to clipboard
measures: ^0.0.2 copied to clipboard

outdated

A package intended to help developers manage routine conversions between commonly used units of measure, and improve readability and unambiguity of code.

measures #

The package intended to help developers manage routine conversions between commonly used units of measure, and improve readability and unambiguity of code.

Use corresponding constructor to pass a value in origin units, and then get it in units you need when you need. For example:

import 'package:measures/measures.dart';

main() {
  var dist = Distance.fromNm(10); // Set the value 10 nautical miles
  print(dist.km); // Get the value in kilometres: 18.52 km
  print(dist.m); // Get the value in metres: 18520.0 m
}
5
likes
0
pub points
31%
popularity

Publisher

unverified uploader

A package intended to help developers manage routine conversions between commonly used units of measure, and improve readability and unambiguity of code.

Repository

License

unknown (license)

More

Packages that depend on measures