ExpandableTree<T> constructor
const
ExpandableTree<T> (
- {Key? key,
- NodeSelectedCallback<
T> ? onSelect, - Widget closedTwisty = DEFAULT_CLOSED_TWISTY,
- Widget openTwisty = DEFAULT_OPENED_TWISTY,
- required List<
TreeNode< nodes,T> > - required NodeBuilder<
T> nodeBuilder, - double childIndent = DEFAULT_CHILD_INDENT,
- bool initiallyExpanded = false,
- Color? openTwistyColor,
- Color? closedTwistyColor,
- TwistyPosition twistyPosition = DEFAULT_TWISTY_POSITION,
- BoxDecoration? childrenDecoration,
- EdgeInsets? childrenMargin,
Default constructor. Used for the root as well as any sub-nodes that can be expanded to show children
Implementation
const ExpandableTree({
Key? key,
this.onSelect,
this.closedTwisty = DEFAULT_CLOSED_TWISTY,
this.openTwisty = DEFAULT_OPENED_TWISTY,
required this.nodes,
required this.nodeBuilder,
this.childIndent = DEFAULT_CHILD_INDENT,
this.initiallyExpanded = false,
this.openTwistyColor,
this.closedTwistyColor,
this.twistyPosition = DEFAULT_TWISTY_POSITION,
this.childrenDecoration,
this.submenuDecoration,
this.submenuMargin,
this.childrenMargin,
this.submenuClosedColor,
this.submenuOpenColor,
}) : super(key: key);