format method

String format([
  1. String pattern = 'dd.MM.yyyy'
])

Implementation

String format([String pattern = 'dd.MM.yyyy']) =>
    this != null ? DateFormat(pattern).format(this!).toString() : '';