FlutterTreeviewPlus constructor

const FlutterTreeviewPlus({
  1. Key? key,
  2. required List<TreeNodeData> data,
  3. dynamic onTap(
    1. TreeNodeData node
    )?,
  4. void onCheck(
    1. bool? checked,
    2. TreeNodeData node
    )?,
  5. void onLoad(
    1. TreeNodeData node
    )?,
  6. void onExpand(
    1. TreeNodeData node
    )?,
  7. void onCollapse(
    1. TreeNodeData node
    )?,
  8. void onAppend(
    1. TreeNodeData node,
    2. TreeNodeData parent
    )?,
  9. void onRemove(
    1. TreeNodeData node,
    2. TreeNodeData parent
    )?,
  10. void onChange(
    1. List<TreeNodeData> listTreeNode
    )?,
  11. TreeNodeData append(
    1. TreeNodeData parent
    )?,
  12. Future<List<TreeNodeData>> load(
    1. TreeNodeData 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 contentTappable = false,
  21. Widget icon = const Icon(Icons.expand_more, size: 16.0),
  22. bool manageParentState = false,
})

Implementation

const FlutterTreeviewPlus({
  Key? key,
  required this.data,
  this.onTap,
  this.onCheck,
  this.onLoad,
  this.onExpand,
  this.onCollapse,
  this.onAppend,
  this.onRemove,
  this.onChange,
  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.contentTappable = false,
  this.icon = const Icon(Icons.expand_more, size: 16.0),
  this.manageParentState = false,
}) : super(key: key);