formatDateTime method

String formatDateTime({
  1. String pattern = 'dd.MM.yyyy',
  2. String? separator = ' ',
})

Implementation

String formatDateTime(
        {String pattern = 'dd.MM.yyyy', String? separator = ' '}) =>
    this != null ? '${format(pattern)}$separator${formattimehmma()}' : '';