formatted property

String get formatted

returns a string representation of the DateTime

Implementation

String get formatted {
  final hour = this.hour.to12Hour;
  final minute = this.minute.padded;
  final second = this.second.padded;
  final meridiem = this.hour.meridiem;

  return '$hour:$minute:$second $meridiem';
}