Remove debug logging from printDuration
jeffjose opened this issue · 2 comments
jeffjose commented
Looks like printDuration
has a debug logging in. See here
Reproduced below
String printDuration(Duration duration,
{DurationTersity tersity = DurationTersity.second,
DurationLocale locale = const EnglishDurationLocale(),
String spacer,
String delimiter,
String conjugation,
bool abbreviated = false}) {
final String fmt = prettyDuration(duration,
tersity: tersity,
locale: locale,
spacer: spacer,
delimiter: delimiter,
conjunction: conjugation,
abbreviated: abbreviated);
print(fmt);
return fmt;
}
tejainece commented
Guys what part of printDuration dont you understand. It is meant to print. If you just want to convet use prettyDuration
. Also read the docs.