simple_durations 1.1.0 copy "simple_durations: ^1.1.0" to clipboard
simple_durations: ^1.1.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

With Flutter:

 $ flutter 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: ^1.1.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:simple_durations/simple_durations.dart';
1
likes
155
points
138
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

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on simple_durations