TreeViewBuilder<T> typedef

TreeViewBuilder<T> = Widget Function(BuildContext context, TreeNode<T> node, bool isSelected, Animation<double> expansionAnimation, void select(TreeNode<T> node))

Callback function for building tree nodes, including animation values.

Example:

Widget buildNode(BuildContext context, TreeNode<String> node, bool isSelected,
    Animation<double> expansionAnimation, Function(TreeNode<String>) select) {
  return Text(node.data);
}

Implementation

typedef TreeViewBuilder<T> = Widget Function(
  BuildContext context,
  TreeNode<T> node,
  bool isSelected,
  Animation<double> expansionAnimation,
  void Function(TreeNode<T> node) select,
);