FactSmartDateQueryResult.ofMetaData constructor

FactSmartDateQueryResult.ofMetaData(
  1. IFactSchema schema,
  2. IFactMetaDate metaDate,
  3. IFact fact,
  4. IRef contact, {
  5. TZDateTime? resultDate,
  6. Location? location,
})

Implementation

FactSmartDateQueryResult.ofMetaData(
  IFactSchema schema,
  IFactMetaDate metaDate,
  IFact fact,
  IRef contact, {
  TZDateTime? resultDate,
  Location? location,
}) : this._(
        schema,
        metaDate,
        fact,
        contact,
        resultDate: resultDate ?? fact.getDate(metaDate, location ?? sunnyLocalization.userLocation!)!,
        selection: smartDateFormat(resultDate ?? fact.getDate(metaDate, location ?? sunnyLocalization.userLocation!),
            formatTime: metaDate.hasTime),
        isTimeInferred: !metaDate.hasTime!,
      );