skip property
Decides which entities to leave out; return true to omit one.
Called once for every entity below the scanned directory that passes
includeHidden, with the object that would become the entry's data:
a Directory, a File, or a Link (see followLinks). An omitted
directory is not listed, so its whole subtree is pruned without any
file-system work. Never called for the scanned directory itself.
null (the default) keeps everything.
The predicate runs synchronously inside the walk; an exception it throws aborts the scan and propagates to the caller.
Implementation
final bool Function(FileSystemEntity entity)? skip;