updateState method

  1. @override
TreeItem<T> updateState({
  1. bool? expanded,
  2. bool? selected,
})
override

Implementation

@override
TreeItem<T> updateState({
  bool? expanded,
  bool? selected,
}) {
  return TreeItem(
    data: data,
    children: children,
    expanded: expanded ?? this.expanded,
    selected: selected ?? this.selected,
  );
}