TypedReplicationFilter typedef Replication Typed Data
- @experimental
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.
Implementation
@experimental
typedef TypedReplicationFilter = FutureOr<bool> Function(
TypedDocumentObject document,
Set<DocumentFlag> flags,
);