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.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add distance

With Flutter:

 $ flutter pub add distance

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  distance: ^1.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:distance/distance.dart';
10
likes
120
pub points
76%
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