toTimeText function

String toTimeText(
  1. DateTime? dateTime, {
  2. String defaultValue = '',
  3. String prefix = '',
})

Implementation

String toTimeText(DateTime? dateTime,
    {String defaultValue = '', String prefix = ''}) {
  if (dateTime == null) return defaultValue;
  return DateFormat.jm().format(dateTime);
}