TreeController<T extends Object> constructor

TreeController<T extends Object>({
  1. required Iterable<T> roots,
  2. required ChildrenProvider<T> childrenProvider,
})

Creates a TreeController.

The roots parameter should contain all nodes that occupy the level 0 of the tree, these nodes are going to be used as a starting point when traversing the tree and building tree views.

Implementation

TreeController({
  required Iterable<T> roots,
  required this.childrenProvider,
}) : _roots = roots;