showDate static method

String showDate(
  1. DateTime? date, {
  2. String format = 'dd/MM/yyyy',
})

Implementation

static String showDate(DateTime? date, {String format = 'dd/MM/yyyy'}) {
  if (date == null) {
    return '';
  }
  return DateFormat(format).format(date);
}