DirectGraph constructor

const DirectGraph({
  1. required List<NodeInput> list,
  2. required double cellWidth,
  3. required double cellPadding,
  4. Key? key,
  5. GestureTapCallback? onCanvasTap,
  6. GestureEdgeTapDownCallback? onEdgeTapDown,
  7. PaintingStyle? edgePaintStyleForTouch,
  8. GestureEdgeTapUpCallback? onEdgeTapUp,
  9. GestureEdgeLongPressStartCallback? onEdgeLongPressStart,
  10. GestureEdgeLongPressEndCallback? onEdgeLongPressEnd,
  11. GestureEdgeLongPressMoveUpdateCallback? onEdgeLongPressMoveUpdate,
  12. GestureEdgeForcePressStartCallback? onEdgeForcePressStart,
  13. GestureEdgeForcePressEndCallback? onEdgeForcePressEnd,
  14. GestureEdgeForcePressPeakCallback? onEdgeForcePressPeak,
  15. GestureEdgeForcePressUpdateCallback? onEdgeForcePressUpdate,
  16. GestureEdgeDragStartCallback? onEdgePanStart,
  17. GestureEdgeDragUpdateCallback? onEdgePanUpdate,
  18. GestureEdgeDragDownCallback? onEdgePanDown,
  19. GestureEdgeTapDownCallback? onEdgeSecondaryTapDown,
  20. GestureEdgeTapUpCallback? onEdgeSecondaryTapUp,
  21. EdgePaintBuilder? paintBuilder,
  22. GestureNodeTapDownCallback? onNodeTapDown,
  23. GestureNodeTapUpCallback? onNodeTapUp,
  24. GestureNodeLongPressStartCallback? onNodeLongPressStart,
  25. GestureNodeLongPressEndCallback? onNodeLongPressEnd,
  26. GestureNodeLongPressMoveUpdateCallback? onNodeLongPressMoveUpdate,
  27. GestureNodeForcePressStartCallback? onNodeForcePressStart,
  28. GestureNodeForcePressEndCallback? onNodeForcePressEnd,
  29. GestureNodeForcePressPeakCallback? onNodeForcePressPeak,
  30. GestureNodeForcePressUpdateCallback? onNodeForcePressUpdate,
  31. GestureNodeDragStartCallback? onNodePanStart,
  32. GestureNodeDragUpdateCallback? onNodePanUpdate,
  33. GestureNodeDragDownCallback? onNodePanDown,
  34. GestureNodeTapDownCallback? onNodeSecondaryTapDown,
  35. GestureNodeTapUpCallback? onNodeSecondaryTapUp,
  36. NodeCellBuilder? builder,
  37. double contactEdgesDistance = 5.0,
  38. MatrixOrientation orientation = MatrixOrientation.Horizontal,
  39. double tipAngle = math.pi * 0.1,
  40. double tipLength = 10.0,
  41. double maxScale = 3.5,
  42. double minScale = 0.25,
  43. EdgePathBuilder? pathBuilder,
})

Implementation

const DirectGraph(
    {required this.list,
    required this.cellWidth,
    required this.cellPadding,
    Key? key,
    this.onCanvasTap,
    this.onEdgeTapDown,
    this.edgePaintStyleForTouch,
    this.onEdgeTapUp,
    this.onEdgeLongPressStart,
    this.onEdgeLongPressEnd,
    this.onEdgeLongPressMoveUpdate,
    this.onEdgeForcePressStart,
    this.onEdgeForcePressEnd,
    this.onEdgeForcePressPeak,
    this.onEdgeForcePressUpdate,
    this.onEdgePanStart,
    this.onEdgePanUpdate,
    this.onEdgePanDown,
    this.onEdgeSecondaryTapDown,
    this.onEdgeSecondaryTapUp,
    this.paintBuilder,
    this.onNodeTapDown,
    this.onNodeTapUp,
    this.onNodeLongPressStart,
    this.onNodeLongPressEnd,
    this.onNodeLongPressMoveUpdate,
    this.onNodeForcePressStart,
    this.onNodeForcePressEnd,
    this.onNodeForcePressPeak,
    this.onNodeForcePressUpdate,
    this.onNodePanStart,
    this.onNodePanUpdate,
    this.onNodePanDown,
    this.onNodeSecondaryTapDown,
    this.onNodeSecondaryTapUp,
    this.builder,
    this.contactEdgesDistance = 5.0,
    this.orientation = MatrixOrientation.Horizontal,
    this.tipAngle = math.pi * 0.1,
    this.tipLength = 10.0,
    this.maxScale = 3.5,
    this.minScale = 0.25,
    this.pathBuilder})
    : super(key: key);