NodeWidget constructor
const
NodeWidget({
- Key? key,
- List<
Widget> ? content, - MainAxisSize rowMainAxisSize = MainAxisSize.min,
- Widget leading = const NodeWidgetLeadingIcon(),
- VoidCallback? onTap,
- VoidCallback? onLongPress,
Creates a NodeWidget.
Notice that the leading NodeWidgetLeadingIcon used is responsible for expanding/collapsing the node, if changed, the node would need to be manually toggled through either TreeView.of or TreeNodeScope.
Take a look at ExpandNodeIcon that has a similar implementation.
Implementation
const NodeWidget({
Key? key,
this.content,
this.rowMainAxisSize = MainAxisSize.min,
this.leading = const NodeWidgetLeadingIcon(),
this.onTap,
this.onLongPress,
}) : super(key: key);