recurrence property
Returns the suggested recurrence for this result. This doesn't necessarily mean that the result should be interpreted as recurring. See isRecurring
Implementation
@override
TimeSpan? get recurrence {
/// Returns the best recurring pattern for this
if (metaDate.isRecurring) {
return TimeSpan(
years: metaDate.recurs == IFactRecurrence.yearly_ ? 1 : 0, months: metaDate.recurs == IFactRecurrence.monthly_ ? 1 : 0);
} else if (metaDate.isHistorical!) {
return TimeSpan(years: 1);
} else {
return null;
}
}