EasyDurationInt extension Null safety

Return Duration base on int input

ex: 1.seconds -> Duration(seconds: 1);

on

Properties

d Duration
Short-hand for days
read-only
days Duration
Return current int in Duration of days
read-only
h Duration
Short-hand for hours
read-only
hours Duration
Return current int in Duration of hours
read-only
M Duration
Short-hand for months
read-only
m Duration
Short-hand for minutes
read-only
microseconds Duration
Return curretn int in Duration of microseconds
read-only
miliseconds Duration
Return current int in Duration of miliseconds
read-only
minutes Duration
Return current int in Duration of minutes
read-only
months Duration
Return current int in Duration of month (30 days / month)
read-only
ms Duration
Short-hand for miliseconds
read-only
s Duration
Short-hand for seconds
read-only
seconds Duration
Returns current int in Duration of seconds
read-only
us Duration
Short-hand for microseconds
read-only
w Duration
Short-hand for weeks
read-only
weeks Duration
Return current int in Duration of weeks (7 days/ week)
read-only
y Duration
Short-hand for years
read-only
years Duration
Return current int in Duration of years (356 days/ year)
read-only

Methods

circles(Duration circleLength) Duration
Return current int in Duration of circles (You decide circle length)