toElegantString property

String toElegantString

Implementation

String get toElegantString {
  String text = "";

  if (start != null) {
    text += ModernFormUtils.timeFormat.format(start!.toDateTime);
    if (end != null && end != TimeOfDay(hour: 0, minute: 0)) {
      text += " - ";
      text += ModernFormUtils.timeFormat.format(end!.toDateTime);
    }
  }

  return text;
}