TreeSliverNode<T> constructor
- T content, {
- List<
TreeSliverNode< ? children,T> > - bool expanded = false,
Creates a TreeSliverNode instance for use in a TreeSliver.
Implementation
TreeSliverNode(
T content, {
List<TreeSliverNode<T>>? children,
bool expanded = false,
}) : _expanded = (children?.isNotEmpty ?? false) && expanded,
_content = content,
_children = children ?? <TreeSliverNode<T>>[];