KatTreeView constructor
const
KatTreeView({
- Key? key,
- required List<
KatTreeNodeData> ? data, - void onTap(
- KatTreeNodeData node
- void onCheck(
- bool checked,
- KatTreeNodeData node
- void onLoad(
- KatTreeNodeData node
- void onExpand(
- KatTreeNodeData node
- void onCollapse(
- KatTreeNodeData node
- void onAppend(
- KatTreeNodeData node,
- KatTreeNodeData? parent
- void onRemove(
- KatTreeNodeData node,
- KatTreeNodeData? parent
- void onAddParent()?,
- KatTreeNodeData append(
- KatTreeNodeData parent
- Future<
List< load(KatTreeNodeData> >- KatTreeNodeData parent
- bool lazy = false,
- double offsetLeft = 24.0,
- int? maxLines,
- bool showFilter = false,
- String filterPlaceholder = 'Search',
- bool showActions = false,
- bool showCheckBox = false,
- bool showRequired = false,
- bool contentTappable = false,
- Widget icon = const Icon(Icons.expand_more, size: 16.0),
- bool manageParentState = false,
Implementation
const KatTreeView({
super.key,
required this.data,
this.onTap,
this.onCheck,
this.onLoad,
this.onExpand,
this.onCollapse,
this.onAppend,
this.onRemove,
this.onAddParent,
this.append,
this.load,
this.lazy = false,
this.offsetLeft = 24.0,
this.maxLines,
this.showFilter = false,
this.filterPlaceholder = 'Search',
this.showActions = false,
this.showCheckBox = false,
this.showRequired = false,
this.contentTappable = false,
this.icon = const Icon(Icons.expand_more, size: 16.0),
this.manageParentState = false,
});