buildGraphElements method

  1. @override
List<Widget> buildGraphElements(
  1. BuildContext context
)
override

Build the elements of the graph

Implementation

@override
List<Widget> buildGraphElements(BuildContext context) {
  return [
    buildEdges(),
    ...buildNodes(context)..sort((a, b) => a.isBeingDragged ? 1 : -1),
  ];
}