TreePath<T> constructor
TreePath<T> ({})
Implementation
TreePath({
required T root,
required String Function(T) onLabel,
required FutureOr<List<T>> Function(T) onSiblings,
required FutureOr<List<T>> Function(T) onChildren,
void Function(List<T>)? onChanged,
bool cache = true,
}) : _onChanged = onChanged,
_onSiblings = onSiblings,
_onChildren = onChildren,
_onLabel = onLabel,
_cached = cache,
super() {
_paths.add(root);
}