toFormat method

String? toFormat(
  1. String format
)

Format DateTime

Implementation

String? toFormat(String format) {
  if (this == null) return null;
  return intl.DateFormat(format, _locale).format(this!);
}