This repository has been archived on 2024-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
ftc_patient_app/lib/utilities/custom_timeago_messages.dart

34 lines
665 B
Dart

import 'package:get_time_ago/get_time_ago.dart';
class CustomTimeAgoMessages implements Messages {
@override
String prefixAgo() => '';
@override
String suffixAgo() => '';
@override
String secsAgo(int seconds) => 'a moment ago';
@override
String minAgo(int minutes) => 'a minute ago';
@override
String minsAgo(int minutes) => '$minutes minutes ago';
@override
String hourAgo(int minutes) => 'an hour ago';
@override
String hoursAgo(int hours) => '$hours hours ago';
@override
String dayAgo(int hours) => 'yesterday';
@override
String daysAgo(int days) => '$days days ago';
@override
String wordSeparator() => ' ';
}