DurationExtensions extension

Duration utilities.

on

Properties

inMonths int
no setter
inWeeks int
no setter
inYears int
Utility to delay some callback (or code execution).
no setter

Methods

delay([FutureOr callback()?]) Future
hms({bool showFull = false}) → dynamic
timeagoSince({DateTimeLang? lang, bool showSeconds = true, bool showMinutes = true, bool showHours = true, bool showDays = true, bool showWeeks = false, bool showMonths = true, bool showYears = true}) Timeago
Sample