DurationSC extension

Supercharged extensions on Duration.

on

Properties

delay Future<void>
Returns a Future that completes after this duration.
no setter

Methods

ago() DateTime
Returns a DateTime object with the current date and time having this duration subtracted.
fromNow() DateTime
Returns a DateTime object with the current date and time having this duration added.

Operators

operator /(Duration otherDuration) double
Divides this by otherDuration and returns a fraction.