nodeBuilder property

Widget Function(BuildContext context, Node<T> node) nodeBuilder
final

Builder function for rendering node content.

Called for each node to create its visual representation. The returned widget is automatically wrapped in a NodeWidget container.

Example:

nodeBuilder: (context, node) {
  return Container(
    padding: EdgeInsets.all(16),
    child: Text(node.data.toString()),
  );
}

Implementation

final Widget Function(BuildContext context, Node<T> node) nodeBuilder;