maxDepth property

int? maxDepth
final

How many levels below the scanned directory are listed.

The scanned directory is depth 0 and its children are depth 1, so 0 returns only the scanned directory, 1 adds its direct children, and null (the default) has no limit. Directories at the limit are reported but not listed. A negative value makes scan, scanSync, and scanTree throw an ArgumentError.

Implementation

final int? maxDepth;