IntDurationExtension extension
Turns a bare integer into a Duration: 5.seconds, 300.ms, 2.days.
- on
Properties
- days → Duration
-
Available on int, provided by the IntDurationExtension extension
7.days==Duration(days: 7)no setter - hours → Duration
-
Available on int, provided by the IntDurationExtension extension
1.hours==Duration(hours: 1)no setter - milliseconds → Duration
-
Available on int, provided by the IntDurationExtension extension
300.milliseconds==Duration(milliseconds: 300)no setter - minutes → Duration
-
Available on int, provided by the IntDurationExtension extension
2.minutes==Duration(minutes: 2)no setter - ms → Duration
-
Available on int, provided by the IntDurationExtension extension
300.ms==Duration(milliseconds: 300)no setter - seconds → Duration
-
Available on int, provided by the IntDurationExtension extension
5.seconds==Duration(seconds: 5)no setter