distance 1.0.0 copy "distance: ^1.0.0" to clipboard
distance: ^1.0.0 copied to clipboard

A simple distance library similar to Dart's duration. Use this to represent distances in an agnostic way.

example/lib/main.dart

import 'package:distance/distance.dart';

void main() {
  final distance = Distance(kilometers: 5, meters: 4);

  print(distance.inMiles); // 3.1093414
  print(distance.inMeters); // 5004
}
10
likes
140
pub points
65%
popularity

Publisher

unverified uploader

A simple distance library similar to Dart's duration. Use this to represent distances in an agnostic way.

Repository (GitHub)
View/report issues

Documentation

API reference

License

LGPL-3.0 (license)

More

Packages that depend on distance