toLocalizedDateTime method

String toLocalizedDateTime({
  1. String? locale,
  2. String? pattern,
  3. DateFormatStyle? style,
})

Formats this date as a localized date and time string.

final formatted = DateTime.now().toLocalizedDateTime(locale: 'fr-FR');

Implementation

String toLocalizedDateTime({String? locale, String? pattern, DateFormatStyle? style}) =>
    formatDateTime(this, locale: locale, pattern: pattern, style: style);