DurationFromIntExtension extension Animation
Extension for creating Durations from ints.
Examples
final week = 7.d;
final day = 24.h;
final hour = 60.m;
final minute = 60.s;
final second = 1000.ms;
final millisecond = 1000.us;
- on
Properties
- d → Duration
-
A Duration that is as many days long as this value.
no setter
- h → Duration
-
A Duration that is as many hours long as this value.
no setter
- m → Duration
-
A Duration that is as many minutes long as this value.
no setter
- ms → Duration
-
A Duration that is as many milliseconds long as this value.
no setter
- s → Duration
-
A Duration that is as many seconds long as this value.
no setter
- us → Duration
-
A Duration that is as many microseconds long as this value.
no setter