FoldableDirectoryTree constructor

const FoldableDirectoryTree({
  1. Key? key,
  2. required String rootPath,
  3. void onFileTap(
    1. File,
    2. TapDownDetails
    )?,
  4. void onFileSecondaryTap(
    1. File,
    2. TapDownDetails
    )?,
  5. void onDirTap(
    1. Directory,
    2. TapDownDetails
    )?,
  6. void onDirSecondaryTap(
    1. Directory,
    2. TapDownDetails
    )?,
  7. FolderStyle? folderStyle,
  8. FileStyle? fileStyle,
  9. List<Widget>? folderActions,
  10. List<Widget>? fileActions,
  11. EditingFieldStyle? editingFieldStyle,
  12. bool enableCreateFileOption = false,
  13. bool enableCreateFolderOption = false,
  14. bool enableDeleteFileOption = false,
  15. bool enableDeleteFolderOption = false,
  16. Widget fileIconBuilder(
    1. String fileExtension
    )?,
})

Implementation

const FoldableDirectoryTree({
  super.key,
  required this.rootPath,
  this.onFileTap,
  this.onFileSecondaryTap,
  this.onDirTap,
  this.onDirSecondaryTap,
  this.folderStyle,
  this.fileStyle,
  this.folderActions,
  this.fileActions,
  this.editingFieldStyle,
  this.enableCreateFileOption = false,
  this.enableCreateFolderOption = false,
  this.enableDeleteFileOption = false,
  this.enableDeleteFolderOption = false,
  this.fileIconBuilder,
});