CascadeNode<T> class

Represents a single node in the hierarchical filter data structure.

Each node has a unique id, a display label, and can contain a list of child nodes to create a nested hierarchy. It can also hold an optional generic value of type T to associate custom data.

Constructors

CascadeNode({required String id, required String label, List<CascadeNode<T>> children = const [], T? value})
Creates a node for the cascade filter.
const

Properties

children List<CascadeNode<T>>
A list of child nodes representing the next level in the hierarchy.
final
hashCode int
The hash code for this object.
no setterinherited
id String
A unique identifier for the node.
final
label String
The text label that will be displayed on the chip.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T?
An optional data payload of type T associated with this node.
final

Methods

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