formatDuration method
Formats the current duration according to the provided localizations.
Returns a FormattedMeasure
containing the value and unit.
Implementation
FormattedMeasure formatDuration(DgisLocalizations localizations) {
return durationToFormattedMeasure(
Duration(seconds: duration),
localizations,
);
}