simple_durations 2.0.0 copy "simple_durations: ^2.0.0" to clipboard
simple_durations: ^2.0.0 copied to clipboard

Extensions on int to easily create Durations directly from ints. Can be used for units as small as planck time all the way up to galactic years and beyond.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add simple_durations

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

dependencies:
  simple_durations: ^2.0.0

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

Import it

Now in your Dart code, you can use:

import 'package:simple_durations/simple_durations.dart';
1
likes
0
points
148
downloads

Publisher

unverified uploader

Weekly Downloads

Extensions on int to easily create Durations directly from ints. Can be used for units as small as planck time all the way up to galactic years and beyond.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

meta

More

Packages that depend on simple_durations