KatTreeNodeData class

Data model for a single node in a KatTreeView-style widget.

Holds the node's content, its expand/check state, permissions for add/remove actions, optional styling overrides, and its child nodes.

Constructors

KatTreeNodeData({required String? title, required bool expanded, required bool checked, required bool displayRequired, required List<KatTreeNodeData>? children, Widget? childWidget, bool allowAdd = false, bool allowRemove = false, dynamic extra, Color? checkBoxCheckColor, WidgetStateProperty<Color>? checkBoxFillColor, ValueGetter<Color>? backgroundColor, List<Widget>? customActions})
KatTreeNodeData.from(KatTreeNodeData other)
Creates a shallow copy of other.

Properties

allowAdd bool
getter/setter pair
allowRemove bool
getter/setter pair
backgroundColor ValueGetter<Color>?
final
checkBoxCheckColor Color?
final
checkBoxFillColor WidgetStateProperty<Color>?
final
checked bool
getter/setter pair
children List<KatTreeNodeData>?
getter/setter pair
childWidget Widget?
getter/setter pair
customActions List<Widget>?
final
displayRequired bool
getter/setter pair
expanded bool
getter/setter pair
extra ↔ dynamic
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
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