DurationSC extension

Supercharged extensions on Duration.

on

Properties

delay Future<void>

Available on Duration, provided by the DurationSC extension

Returns a Future that completes after this duration.
no setter

Methods

ago() DateTime

Available on Duration, provided by the DurationSC extension

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

Available on Duration, provided by the DurationSC extension

Returns a DateTime object with the current date and time having this duration added.

Operators

operator /(Duration otherDuration) double

Available on Duration, provided by the DurationSC extension

Divides this by otherDuration and returns a fraction.