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
copied to clipboard

With Flutter:

 $ flutter pub add distance
copied to clipboard

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
copied to clipboard

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';
copied to clipboard
10
likes
140
points
297
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.11 - 2025.03.26

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

Repository (GitHub)

Documentation

API reference

License

LGPL-3.0 (license)

More

Packages that depend on distance