streamFactsForContact method

ValueStream<Facts> streamFactsForContact(
  1. MKey contactId
)
override

Implementation

ValueStream<Facts> streamFactsForContact(MKey contactId) {
  return ValueStream.of(
    getFactsForContact(contactId),
    factStream
        .where((fact) => fact.contactKey == contactId)
        .asyncMapSample((_) async {
      return await getFactsForContact(contactId);
    }),
  );
}