XTreeNode constructor

const XTreeNode({
  1. Color colorIcon = Colors.white,
  2. Color colorTreeNode = Colors.black,
  3. EdgeInsets? paddingTreeNode,
  4. int? level = 0,
  5. bool? expaned = false,
  6. double? offsetLeft = 24.0,
  7. List<Widget>? children = const [],
  8. Widget? title = const Text('Title'),
  9. Widget? leading = const IconButton(icon: Icon(Icons.star_border, color: Colors.white), iconSize: 16, onPressed: null),
  10. Widget? trailing = const IconButton(icon: Icon(Icons.expand_more, color: Colors.white), iconSize: 16, onPressed: null),
  11. Function? titleOnTap,
  12. Function? leadingOnTap,
  13. Function? trailingOnTap,
})

Implementation

const XTreeNode({
  this.colorIcon = Colors.white,
  this.colorTreeNode = Colors.black,
  this.paddingTreeNode,
  this.level = 0,
  this.expaned = false,
  this.offsetLeft = 24.0,
  this.children = const [],
  this.title = const Text('Title'),
  this.leading = const IconButton(
    icon: Icon(Icons.star_border, color: Colors.white),
    iconSize: 16,
    onPressed: null,
  ),
  this.trailing = const IconButton(
    icon: Icon(
      Icons.expand_more,
      color: Colors.white,
    ),
    iconSize: 16,
    onPressed: null,
  ),
  this.titleOnTap,
  this.leadingOnTap,
  this.trailingOnTap,
});