FactService class

Implemented types
Mixed in types
  • LoggingMixin

Constructors

FactService(FactApi factApi, IFactSchemaApi factSchemaApi, ApiRegistry apis, [IBundleState? bundleState])

Properties

attributeSchemas → SunnyObservableMap<String, IFactSchema>
final
bundleState IBundleState
final
factSchemas List<IFactSchema>
no setter
factStream Stream<IFact>
no setter
hashCode int
The hash code for this object.
no setterinherited
historySchemas → SunnyObservableMap<String, IFactSchema>
final
isLoaded Future<bool>
no setter
log → Logger
no setterinherited
loggerName String
no setterinherited
orgSchemas → SunnyObservableMap<String, IFactSchema>
Schemas that represent organizations
final
remindSchemas → SunnyObservableMap<String, IFactSchema>
final
restrictedSchemas Set<MSchemaRef>
Based on current installation, returns a list of schemas that are not allowed because the user has not installed the appropriate plugin
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteFact(IFact fact) Future
override
factChanged(IFact fact) → void
findFactSchemas(String queryText) Future<List<FactDateSchemaQuery>>
Looks for fact schemas that match queryText. Searches name, label, factTokens
override
getFactEmoji(MSchemaRef? ref) String
override
getFactMetaDate(MetaDateRef ref) Future<FactSchemaAndDate>
getFactSchema(MSchemaRef? ref) → IFactSchema?
override
getFactsForContact(MKey contactId) Future<Facts>
getSchemaRequiredBundles(MSchemaRef ref) Set<MKey>
listFacts(MSchemaRef mtype, {double? offset, double? limit}) Future<Iterable<IFact>>
loadFactSchema(MSchemaRef ref) FutureOr<IFactSchema>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshFactSchemas() Future
resolveMetaDates(Iterable<MetaDateRef> refs) Future<List<FactSchemaAndDate>>
Looks for fact schemas that match queryText. Searches name, label, factTokens
override
saveFact(IFact fact) Future<IFact>
override
streamFactsForContact(MKey contactId) → ValueStream<Facts>
override
streamFactsForUser(MKey userId) → ValueStream<Facts>
toString() String
A string representation of this object.
inherited

Operators

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