longDateWithTime static method

String Function(DateTime) longDateWithTime([
  1. String locale = 'en_US'
])

Creates a formatter for long date with time

Implementation

static String Function(DateTime) longDateWithTime([String locale = 'en_US']) {
  return DateFormatterBuilder()
      .locale(locale)
      .dateFormat(DateFormatStyle.long)
      .timeFormat(TimeFormatStyle.twelveHour)
      .includeTime()
      .build();
}