dateToTime function
Implementation
String dateToTime(BuildContext context, {required DateTime date}) =>
TimeOfDay.fromDateTime(date).format(context);
String dateToTime(BuildContext context, {required DateTime date}) =>
TimeOfDay.fromDateTime(date).format(context);