easy_duration 0.0.1 copy "easy_duration: ^0.0.1" to clipboard
easy_duration: ^0.0.1 copied to clipboard

outdated

easy_duration helps shortens duration declaration, easy to use it as an extension.

easy_duration #

Usage #

Current time, Duration can be declare using an int value:

example:

\\ 10 seconds duration
final tenSecondsDuration = 10.seconds; \\ or 10.s

\\ 1 minutes and 30 seconds -> 90 seconds
final aMinuteAndHalf = 90.seconds; \\ or 90.s

Short-hand table #

function short-hand Unit
seconds s seconds
miliseconds ms miliseconds
microseconds us microseconds
minutes m minutes
hours h hours
days d days
months M days(30 days / month)
years y years (365 days/year)

More information #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

easy_duration helps shortens duration declaration, easy to use it as an extension.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on easy_duration