FileNode class

Represents a file or directory node in the file system tree.

Contains information about the file or directory including its name, path, size, and any child nodes (for directories).

Constructors

FileNode.new({required String name, required String path, required bool isDirectory, int size = 0, List<FileNode>? children})
Creates a new FileNode instance.

Properties

children List<FileNode>
Child nodes if this is a directory.
final
hashCode int
The hash code for this object.
no setterinherited
isDirectory bool
Whether this node represents a directory.
final
name String
The name of the file or directory.
final
path String
The full path to the file or directory.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
Size of the file in bytes, or total size of all files in a directory.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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