formatDate method

String formatDate(
  1. String dateFormat
)

Formats with an intl pattern. date.formatDate("yyyy-MM-dd HH:mm")

Implementation

String formatDate(String dateFormat) => intl.DateFormat(dateFormat).format(this);