TreePrinter constructor
TreePrinter({})
Creates a new TreePrinter with the specified options.
ignorePatterns
Patterns to ignore when processing files and directories.
showSizes
Whether to show file and directory sizes (default: false).
sortBy
Criteria to use for sorting files and directories (default: name).
sortDirection
Direction to sort files and directories (default: ascending).
maxLevel
Maximum directory depth to display (default: null, which means unlimited).
suppressErrors
Whether to suppress error messages (default: false).
Implementation
TreePrinter({
required this.ignorePatterns,
this.showSizes = false,
this.sortBy = SortBy.name,
this.sortDirection = SortDirection.ascending,
this.suppressErrors = false,
this.maxLevel,
});