tryFormatDurationToStr static method
String?
tryFormatDurationToStr(
- Duration? duration, {
- FormatxxDurationType_e type = FormatxxDurationType_e.hhMMSS,
- SeparatorxxType_e separator = SeparatorxxType_e.Symbol,
Implementation
static String? tryFormatDurationToStr(
Duration? duration, {
FormatxxDurationType_e type = FormatxxDurationType_e.hhMMSS,
SeparatorxxType_e separator = SeparatorxxType_e.Symbol,
}) {
if (null == duration) {
return null;
}
return formatDurationToStr(
duration,
type: type,
separator: separator,
);
}