canFullyConvertToText property

bool canFullyConvertToText

Whether this rule can be converted to a human-readable string.

Implementation

bool get canFullyConvertToText {
  if (hasBySeconds || hasByMinutes || hasByHours) {
    return false;
  } else if (frequency <= Frequency.daily) {
    return true;
  } else if (hasBySetPositions ||
      hasBySeconds ||
      hasByMinutes ||
      hasByHours ||
      hasByWeekDays ||
      hasByMonthDays ||
      hasByYearDays ||
      hasByWeeks ||
      hasByMonths) {
    return false;
  }
  return true;
}