TypedReplicationFilter typedef Replication Typed Data

  1. @experimental
TypedReplicationFilter = FutureOr<bool> Function(TypedDocumentObject<Object> document, Set<DocumentFlag> flags)

A function that decides whether a particular typed document should be pushed/pulled.

It should not take a long time to return, or it will slow down the replicator.

The function receives the document in question and flags describing the document.

Return true if the document should be replicated, false to skip it.


typedef TypedReplicationFilter = FutureOr<bool> Function(
  TypedDocumentObject document,
  Set<DocumentFlag> flags,