TreeNode constructor
const
TreeNode({
- required TreeData data,
- int level = 0,
- bool expaned = false,
- double offsetLeft = 24.0,
- List<
Widget> children = const [], - IconButton? childIcon,
- IconButton? leadingIcon,
- IconButton trailing = const IconButton(icon: Icon(Icons.expand_more), iconSize: 18, onPressed: null),
- OnTreeItemClick? titleOnTap,
- Function? leadingOnTap,
- Function? trailingOnTap,
Implementation
const TreeNode({
required this.data,
this.level = 0,
this.expaned = false,
this.offsetLeft = 24.0,
this.children = const [],
this.childIcon,
this.leadingIcon,
this.trailing = const IconButton(
icon: Icon(Icons.expand_more),
iconSize: 18,
onPressed: null,
),
this.titleOnTap,
this.leadingOnTap,
this.trailingOnTap,
});