formatDate static method

String? formatDate(
  1. DateTime? date
)

Formats a DateTime the way the Mandrill API expects it.

Implementation

static String? formatDate(DateTime? date) =>
    date == null ? null : _dateFormat.format(date.toUtc());