ReplicationFilter typedef Null safety Replication
A function that decides whether a particular 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
typedef ReplicationFilter = FutureOr<bool> Function(
Document document,
Set<DocumentFlag> flags,
);