time_ago_provider library Null safety

Classes

Arabic
Note: Some arabic ternary operators may look reversed due file formatting
English
French
German
Italian
Norwegian
Polish
Portuguese
Spanish
Swedish
Turkish

Functions

format(DateTime date, {String locale = 'en', DateTime? clock, bool enableFromNow = false}) String
Formats provided date to a fuzzy time like '9 minutes ago'
formatFull(DateTime date, {String locale = 'en', DateTime? clock, bool enableFromNow = false}) String
Formats provided date to a full fuzzy time like '2 years, 9 months, 9 days, 6 hours, 8 minutes, 3 seconds'
setLocale(String locale, Language language) → void
Sets a locale with the provided Language to be available when using the format function.