es property
String
get
es
Returns a string representing the time interval in Spanish.
Implementation
String get es {
switch (type) {
case TimeAgoType.justNow:
return 'ahora mismo';
case TimeAgoType.seconds:
return 'hace ${value.toString().padLeft(2, "0")} segundos';
case TimeAgoType.minutes:
return 'hace ${value.toString().padLeft(2, "0")} minutos';
case TimeAgoType.hours:
return 'hace ${value.toString().padLeft(2, "0")} horas';
case TimeAgoType.days:
return 'hace ${value.toString().padLeft(2, "0")} días';
case TimeAgoType.weeks:
return 'hace ${value.toString().padLeft(2, "0")} semanas';
}
}