nodeBuilder property
Builder function for rendering node content.
This function is called for each node in the graph to create its visual representation. The returned widget is automatically wrapped in a NodeWidget unless you provide a custom nodeContainerBuilder.
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;