SmartDateService class

Mixed in types
  • LoggingMixin

Constructors

SmartDateService(ISmartDateApi api, IFactService factService, {bool enableFacts = false})

Properties

api → ISmartDateApi
final
enableFacts bool
final
factService → IFactService
final
hashCode int
The hash code for this object.
no setterinherited
log → Logger
no setterinherited
loggerName String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

executeQueries(Iterable<SmartDateQuerySource> queries, {bool isFlexiDate = false, Iterable<SmartDateQueryResult>? existingResults, required Location location}) Future<List<SmartDateQueryResult>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseDates(String text, {bool isFlexiDate = false, IRef? contact, FutureOr<List<IFact>>? facts, Location? location}) Future<List<SmartDateQueryResult>>
resolveMetaDateResults({required Iterable<MetaDateRef> refs, IRef? contact, FutureOr<List<IFact>>? facts, Location? location}) Future<List<SmartDateQueryResult>>
Typically, the user types in a query, like "week before birthday", the system extracts "Birthday", constructs a query that can be sent to the server to be resolved. In the case of default values, we don't need to do the extra interpolation because we the source of the query is the date itself.constructed the query to be the date exactly.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited