excludeDocuments property

List<DocumentFilter>? excludeDocuments
getter/setter pair

Document classes that will be explicitly rejected by this filter. Documents belonging to the specified classes will not be processed. Other documents, not included with excludeDocuments will be accepted.

If this array is empty, no restrictions are applied, and documents will be excluded only if not present in includeDocuments.

Example usage:

 final classFilter = ClassFilter();
  classFilter.excludeDocuments = [
    DocumentFilter.country(Country.usa),
    DocumentFilter.countryType(Country.croatia, DocumentType.id),
  ];

  await blinkIdPlugin.performScan(sdkSettings, sessionSettings classFilter)

NOTE: from the example above, the class filter is set to only exclude all documents from USA, and Croatian IDs. All other classes will be accepted.

Rules can be combined, for example, to set all three properties (Country Region, Type), two (e.g., Country and Type) or just one (e.g, Region).

See DocumentFilter for setting the combinations.

Implementation

List<DocumentFilter>? excludeDocuments;