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