easy_duration

Creator: coderz1093

Last updated:

0 purchases

easy_duration Image
easy_duration Images
Add to Cart

Description:

easy duration

easy_duration #
Usage #
Duration can be declare using an int and double (double value will be converted to smaller unit and the truncate to 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
copied to clipboard
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
days (365 days/year)


weeks
w
days (7 days/ week)


circles
c
circle



Other functions #

The day before: return the day before the given date
The day after: return the day after the given date

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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.