pt property
String
get
pt
Returns a string representing the time interval in Portuguese.
Implementation
String get pt {
switch (type) {
case TimeAgoType.justNow:
return 'agora mesmo';
case TimeAgoType.seconds:
return 'há ${value.toString().padLeft(2, "0")} segundos';
case TimeAgoType.minutes:
return 'há ${value.toString().padLeft(2, "0")} minutos';
case TimeAgoType.hours:
return 'há ${value.toString().padLeft(2, "0")} horas';
case TimeAgoType.days:
return 'há ${value.toString().padLeft(2, "0")} dias';
case TimeAgoType.weeks:
return 'há ${value.toString().padLeft(2, "0")} semanas';
}
}