nodeBuilder property
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;