stringISOToHumanAgo function

String stringISOToHumanAgo(
  1. String isoString
)

Implementation

String stringISOToHumanAgo(String isoString) {
  timeago.setLocaleMessages('id', timeago.IdMessages());
  final date = stringISOtoDateTime(isoString);
  final timeAgo = DateTime.now().subtract(DateTime.now().difference(date));
  return timeago.format(timeAgo, locale: 'id');
}