Adds change detection mechanism for document changes

This commit is contained in:
Anton Stubenbord
2023-02-04 19:24:11 +01:00
parent 3f305ce1d6
commit 337c178be8
14 changed files with 201 additions and 57 deletions

View File

@@ -143,6 +143,11 @@ class DocumentFilter extends Equatable {
return newFilter;
}
///
/// Checks whether the properties of [document] match the current filter criteria.
///
bool includes(DocumentModel document) {}
int get appliedFiltersCount => [
documentType != initial.documentType,
correspondent != initial.correspondent,