toElegantString property

String toElegantString

Implementation

String get toElegantString {
  String text = "";

  if (this != null) {
    text += ModernFormUtils.dateFormat.format(this!.start);
    if (this!.end != DateTime(0, 0, 0)) {
      text += " - ";
      text += ModernFormUtils.dateFormat.format(this!.end);
    }
  }

  return text;
}