measures 0.0.1 copy "measures: ^0.0.1" to clipboard
measures: ^0.0.1 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.

example/example.dart

// Copyright (c) 2021, Anton Antonchik.  All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:measures/measures.dart';

main() {
  var dist = Distance.fromNm(10); // Set the value from nautical miles
  print(dist.km); // Get the value in kilometres when you need
  print(dist.m); // Get the value in metres when you need

  var speed = Speed.fromKt(100);
  print(speed.kmh); // Get the value in kilometres per hour when you need
  print(speed.ms); // Get the value in metres per second when you need
}
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)

Dependencies

meta

More

Packages that depend on measures