time static method
The time of day as the reader's device prints it: the 24-hour clock ("07:05", "21:30") when the platform asks for it (MediaQuery.alwaysUse24HourFormatOf), else the 12-hour face ("7:05 AM", "9:30 PM"). It never hard-codes either.
Implementation
static String time(BuildContext context, DateTime d) =>
clock(d, twentyFourHour: MediaQuery.alwaysUse24HourFormatOf(context));