format method

String format({
  1. String style = defaultStyle,
})

Time formatting.

Implementation

String format({String style = defaultStyle}) {
  if (style.isEmpty) style = defaultStyle;
  return DateUnit.handleDateTime(this, style);
}