FlutterTreeviewPlus constructor
const
FlutterTreeviewPlus({
- Key? key,
- required List<
TreeNodeData> data, - dynamic onTap(
- TreeNodeData node
- void onCheck(
- bool? checked,
- TreeNodeData node
- void onLoad(
- TreeNodeData node
- void onExpand(
- TreeNodeData node
- void onCollapse(
- TreeNodeData node
- void onAppend(
- TreeNodeData node,
- TreeNodeData parent
- void onRemove(
- TreeNodeData node,
- TreeNodeData parent
- void onChange(
- List<
TreeNodeData> listTreeNode
- List<
- TreeNodeData append(
- TreeNodeData parent
- Future<
List< load(TreeNodeData> >- TreeNodeData parent
- bool lazy = false,
- double offsetLeft = 24.0,
- int? maxLines,
- bool showFilter = false,
- String filterPlaceholder = 'Search',
- bool showActions = false,
- bool showCheckBox = false,
- bool contentTappable = false,
- Widget icon = const Icon(Icons.expand_more, size: 16.0),
- 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);