getValueParts method

  1. @override
List<CalendarStructuredValuePart> getValueParts()
override

Implementation

@override
List<CalendarStructuredValuePart> getValueParts() {
  return [
    _FreqValuePart(value.frequency),
    if (value.until != null) _UntilValuePart(value.until!),
    if (value.count != null) _CountValuePart(value.count!),
    _IntervalValuePart(value.interval),
    if (value.bySeconds != null && value.bySeconds!.isNotEmpty)
      _BySecondValuePart(value.bySeconds!),
    if (value.byMinutes != null && value.byMinutes!.isNotEmpty)
      _ByMinuteValuePart(value.byMinutes!),
    if (value.byHours != null && value.byHours!.isNotEmpty)
      _ByHourValuePart(value.byHours!),
    if (value.byDays != null && value.byDays!.isNotEmpty)
      _ByDayValuePart(value.byDays!),
    if (value.byMonthDays != null && value.byMonthDays!.isNotEmpty)
      _ByMonthDayValuePart(value.byMonthDays!),
    if (value.byYearDays != null && value.byYearDays!.isNotEmpty)
      _ByYearDayValuePart(value.byYearDays!),
    if (value.byWeekNumbers != null && value.byWeekNumbers!.isNotEmpty)
      _ByWeekNoValuePart(value.byWeekNumbers!),
    if (value.byMonths != null && value.byMonths!.isNotEmpty)
      _ByMonthValuePart(value.byMonths!),
    if (value.bySetPositions != null && value.bySetPositions!.isNotEmpty)
      _BySetPosValuePart(value.bySetPositions!),
    _WkstValuePart(value.startOfWorkWeek),
  ];
}