EdgeBuilder<T> typedef
EdgeBuilder<T> =
Widget Function(BuildContext context, T a, T b, double distance)
A builder that builds an edge.
context is the build context.
a is the data of the node at the start of the edge.
b is the data of the node at the end of the edge.
distance is the distance between the two nodes.
Implementation
typedef EdgeBuilder<T> = Widget Function(
BuildContext context, T a, T b, double distance);