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.

For full control over node rendering, implement Node.buildWidget to make your node self-rendering.

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;