FileTree class

A file tree component for displaying a directory structure.

Use FileTree.new to use as a CustomComponent for jaspr_content, or FileTree.from to create a normal Component.

Inheritance

Constructors

FileTree()
Creates a file tree CustomComponent.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme FileTreeTheme
An optional theme extension for this component.
no setteroverride

Methods

buildFileTreeItem(Node node, NodesBuilder builder) FileTreeItem
create(Node node, NodesBuilder builder) → Component?
Creates a component for the given node, or returns null.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

styles List<StyleRule>
no setter

Static Methods

from({required List<FileTreeItem> items, Key? key}) → Component
Creates a file tree Component from the given list of items.