format method

String? format(
  1. String format
)

Format DateTime to String

Implementation

String? format(String format) {
  if (this == null) {
    return null;
  } else {
    return DateFormat(format).format(this);
  }
}