IntConvertDuration extension
Extension on int to add methods to convert to Duration.
Supported units
microseconds
milliseconds
seconds
minutes
hours
days
weeks
- on
Properties
- days → Duration
-
Available on int, provided by the IntConvertDuration extension
Returns a Duration with the given number of days.no setter - hours → Duration
-
Available on int, provided by the IntConvertDuration extension
Returns a Duration with the given number of hours.no setter - microseconds → Duration
-
Available on int, provided by the IntConvertDuration extension
Returns a Duration with the given number of microseconds.no setter - milliseconds → Duration
-
Available on int, provided by the IntConvertDuration extension
Returns a Duration with the given number of milliseconds.no setter - minutes → Duration
-
Available on int, provided by the IntConvertDuration extension
Returns a Duration with the given number of minutes.no setter - seconds → Duration
-
Available on int, provided by the IntConvertDuration extension
Returns a Duration with the given number of seconds.no setter - weeks → Duration
-
Available on int, provided by the IntConvertDuration extension
Returns a Duration with the given number of weeks.no setter