CustomNumUtils extension
An extension for the num
class providing utilities for dealing with time durations and delaying code execution.
- on
Properties
- cDays → Duration
-
Available on num, provided by the CustomNumUtils extension
Converts a numeric value to aDuration
representing days.no setter - cHours → Duration
-
Available on num, provided by the CustomNumUtils extension
Converts a numeric value to aDuration
representing hours.no setter - cMilliseconds → Duration
-
Available on num, provided by the CustomNumUtils extension
Converts a numeric value to aDuration
representing milliseconds.no setter - cMinutes → Duration
-
Available on num, provided by the CustomNumUtils extension
Converts a numeric value to aDuration
representing minutes.no setter - cSeconds → Duration
-
Available on num, provided by the CustomNumUtils extension
Converts a numeric value to aDuration
representing seconds.no setter
Methods
-
cDelay(
[FutureOr callback()?]) → Future -
Available on num, provided by the CustomNumUtils extension
Delays the execution of a callback or code by the specified number of seconds.