fr property
String
get
fr
Returns a string representing the time interval in French.
Implementation
String get fr {
switch (type) {
case TimeAgoType.justNow:
return 'à l\'instant';
case TimeAgoType.seconds:
return 'il y a ${value.toString().padLeft(2, "0")} secondes';
case TimeAgoType.minutes:
return 'il y a ${value.toString().padLeft(2, "0")} minutes';
case TimeAgoType.hours:
return 'il y a ${value.toString().padLeft(2, "0")} heures';
case TimeAgoType.days:
return 'il y a ${value.toString().padLeft(2, "0")} jours';
case TimeAgoType.weeks:
return 'il y a ${value.toString().padLeft(2, "0")} semaines';
}
}