toShortDateMonthText function

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

Implementation

String toShortDateMonthText(DateTime? dateTime,
    {String defaultValue = '', String prefix = ''}) {
  if (dateTime == null) return defaultValue;
  return '$prefix${getShortMonthText(dateTime.month)} ${dateTime.day}';
}