format method

String format([
  1. String? format
])

Shortcut to format the string

Implementation

String format([String? format]) {
  return DateFormat(format, "en-GB").format(this);
}