KatTreeView constructor

const KatTreeView({
  1. Key? key,
  2. required List<KatTreeNodeData>? data,
  3. void onTap(
    1. KatTreeNodeData node
    )?,
  4. void onCheck(
    1. bool checked,
    2. KatTreeNodeData node
    )?,
  5. void onLoad(
    1. KatTreeNodeData node
    )?,
  6. void onExpand(
    1. KatTreeNodeData node
    )?,
  7. void onCollapse(
    1. KatTreeNodeData node
    )?,
  8. void onAppend(
    1. KatTreeNodeData node,
    2. KatTreeNodeData? parent
    )?,
  9. void onRemove(
    1. KatTreeNodeData node,
    2. KatTreeNodeData? parent
    )?,
  10. void onAddParent()?,
  11. KatTreeNodeData append(
    1. KatTreeNodeData parent
    )?,
  12. Future<List<KatTreeNodeData>> load(
    1. KatTreeNodeData parent
    )?,
  13. bool lazy = false,
  14. double offsetLeft = 24.0,
  15. int? maxLines,
  16. bool showFilter = false,
  17. String filterPlaceholder = 'Search',
  18. bool showActions = false,
  19. bool showCheckBox = false,
  20. bool showRequired = false,
  21. bool contentTappable = false,
  22. Widget icon = const Icon(Icons.expand_more, size: 16.0),
  23. 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,
});