NodeGroup constructor

NodeGroup({
  1. required String title,
  2. Function? centerNodeOnClick,
  3. required List<NodeModel> childNodeList,
  4. required double x,
  5. required double y,
  6. LinearGradient gradient = blueLinearGradientOne,
})

Implementation

NodeGroup({
  required this.title,
  this.centerNodeOnClick,
  required this.childNodeList,
  required this.x,
  required this.y,
  this.gradient = blueLinearGradientOne,
}) {
  nodeList = initNodeList();
  edgeList = initEdgeList();
}