CustomNumUtils extension

An extension for the num class providing utilities for dealing with time durations and delaying code execution.

on

Properties

cDays Duration
Converts a numeric value to a Duration representing days.
no setter
cHours Duration
Converts a numeric value to a Duration representing hours.
no setter
cMilliseconds Duration
Converts a numeric value to a Duration representing milliseconds.
no setter
cMinutes Duration
Converts a numeric value to a Duration representing minutes.
no setter
cSeconds Duration
Converts a numeric value to a Duration representing seconds.
no setter

Methods

cDelay([FutureOr callback()?]) Future
Delays the execution of a callback or code by the specified number of seconds.