simple_durations 1.0.4
simple_durations: ^1.0.4 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.
example/example.md
Example Usage
final microsecondsDuration = 500.us; // or 500.microseconds
final secondsDuration = 5.s; // or 5.seconds
final daysDuration = 10.d; // or 10.days