toFormattedString method

String toFormattedString({
  1. String pattern = 'yyyy-MM-dd HH:mm',
})

Implementation

String toFormattedString({String pattern = 'yyyy-MM-dd HH:mm'}) =>
    DateFormat(pattern).format(this);