format method

String format (
  1. {DateTime dateTime,
  2. List<String> dateFormat}
)

Implementation

static String format({DateTime dateTime, List<String> dateFormat})
{
  return dateTime != null ? DateFormatter.formatDate(dateTime, dateFormat ?? DATE_FORMAT) : null;
}