parseDates method
Implementation
Future<List<SmartDateQueryResult>> parseDates(String text,
{bool isFlexiDate = false,
IRef? contact,
FutureOr<List<IFact>>? facts,
Location? location}) async {
try {
final _facts = (await facts ?? []);
final matches = enableFacts
? await factService.findFactSchemas(text)
: <FactDateSchemaQuery>[];
var result = await _resolveAndQuery(
text: text,
isFlexiDate: isFlexiDate,
contact: contact,
facts: _facts,
matches: matches,
location: location,
);
return result;
} catch (e, stack) {
log.severe("Error fetching date results $e", e, stack);
rethrow;
}
}