XTreeNode constructor
const
XTreeNode({
- Color colorIcon = Colors.white,
- Color colorTreeNode = Colors.black,
- EdgeInsets? paddingTreeNode,
- int? level = 0,
- bool? expaned = false,
- double? offsetLeft = 24.0,
- List<
Widget> ? children = const [], - Widget? title = const Text('Title'),
- Widget? leading = const IconButton(icon: Icon(Icons.star_border, color: Colors.white), iconSize: 16, onPressed: null),
- Widget? trailing = const IconButton(icon: Icon(Icons.expand_more, color: Colors.white), iconSize: 16, onPressed: null),
- Function? titleOnTap,
- Function? leadingOnTap,
- 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,
});