DirectoryTreeViewer constructor

const DirectoryTreeViewer({
  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. List<Widget>? folderActions,
  8. List<Widget>? fileActions,
  9. FolderStyle? folderStyle,
  10. FileStyle? fileStyle,
  11. bool isUnfoldedFirst = true,
  12. EditingFieldStyle? editingFieldStyle,
  13. bool enableCreateFileOption = false,
  14. bool enableCreateFolderOption = false,
  15. bool enableDeleteFileOption = false,
  16. bool enableDeleteFolderOption = false,
  17. Widget fileIconBuilder(
    1. String fileExtension
    )?,
})

Constructs a DirectoryTreeViewer with the given properties.

Implementation

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