DirectoryScanner constructor
const
DirectoryScanner({
- bool includeHidden = false,
- bool followLinks = false,
- int? maxDepth,
- bool skip(
- FileSystemEntity entity
- void onError(
- FileSystemException error
Creates a scanner; the scan path is given later to scan, scanSync, or scanTree, so one scanner can be reused for many directories.
maxDepth must be null or non-negative; a negative value is reported
as an ArgumentError when a scan starts, not here, so the constructor
can stay const.
Implementation
const DirectoryScanner({
this.includeHidden = false,
this.followLinks = false,
this.maxDepth,
this.skip,
this.onError,
});