formatDuration method

FormattedMeasure formatDuration(
  1. DgisLocalizations localizations
)

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,
  );
}