TreeNode constructor

const TreeNode({
  1. required TreeData data,
  2. int level = 0,
  3. bool expaned = false,
  4. double offsetLeft = 24.0,
  5. List<Widget> children = const [],
  6. IconButton? childIcon,
  7. IconButton? leadingIcon,
  8. IconButton trailing = const IconButton(icon: Icon(Icons.expand_more), iconSize: 18, onPressed: null),
  9. OnTreeItemClick? titleOnTap,
  10. Function? leadingOnTap,
  11. 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,
});