formatTime static method
Format the given time by comparing with DateTime.now() and return the time difference in a intelligent format
final d = DateTime()
Implementation
static String formatTime(
DateTime d, {
Formatter formatter = Formatter.large,
bool showAgo = true,
bool showYesterday = false,
DateFormat? df,
}) =>
_formatTime(
d,
formatter,
showAgo,
showYesterday,
df,
);