getFormattedDate method

String? getFormattedDate([
  1. String format = 'dd-MM-yyyy'
])

Implementation

String? getFormattedDate([String format = 'dd-MM-yyyy']) {
  if (this == null) return null;

  return DateFormat(format).format(this!);
}