formattedTime method
Retorna String com tempo formatado. É possível configurar o caractere separador. É possível configurar se deve incluir segundos.
Implementation
String formattedTime([bool includeSeconds = true, String separator = ':']) {
String time = '${this.hour.pad}$separator${this.minute.pad}';
if (includeSeconds) time += '$separator${this.second.pad}';
return time;
}