DartoolDuration extension

Compact duration formatting helpers.

on

Methods

formatClock() → String

Available on Duration, provided by the DartoolDuration extension

Format as HH:mm:ss or mm:ss.
formatCompact({bool dropZeroLeading = true}) → String

Available on Duration, provided by the DartoolDuration extension

Format as compact human-readable like 2h30m or 15s.