TermResult.ofSmartDate constructor

TermResult.ofSmartDate(
  1. SmartDateQuerySource source,
  2. ISmartDate smartDate,
  3. DateTime resultDate, {
  4. String? icon,
  5. String? overrideTitle,
})

Implementation

TermResult.ofSmartDate(
  SmartDateQuerySource this.source,
  ISmartDate smartDate,
  this.resultDate, {
  this.icon,
  this.overrideTitle,
})  : flexiDate = FlexiDate.ofDateTime(resultDate),
      isFlexible = false,
      isTimeInferred = smartDate.isTimeInferred,
      isRecurring = smartDate.isRecurring! ||
          source.smartDateQuery?.toLowerCase().startsWith("every") == true,
      recurrence = smartDate.toTimeSpan(),
      smartDateQuery = source.smartDateQuery;