DirectGraph constructor
const
DirectGraph({
- required List<
NodeInput> list, - required double cellWidth,
- required double cellPadding,
- Key? key,
- GestureTapCallback? onCanvasTap,
- GestureEdgeTapDownCallback? onEdgeTapDown,
- PaintingStyle? edgePaintStyleForTouch,
- GestureEdgeTapUpCallback? onEdgeTapUp,
- GestureEdgeLongPressStartCallback? onEdgeLongPressStart,
- GestureEdgeLongPressEndCallback? onEdgeLongPressEnd,
- GestureEdgeLongPressMoveUpdateCallback? onEdgeLongPressMoveUpdate,
- GestureEdgeForcePressStartCallback? onEdgeForcePressStart,
- GestureEdgeForcePressEndCallback? onEdgeForcePressEnd,
- GestureEdgeForcePressPeakCallback? onEdgeForcePressPeak,
- GestureEdgeForcePressUpdateCallback? onEdgeForcePressUpdate,
- GestureEdgeDragStartCallback? onEdgePanStart,
- GestureEdgeDragUpdateCallback? onEdgePanUpdate,
- GestureEdgeDragDownCallback? onEdgePanDown,
- GestureEdgeTapDownCallback? onEdgeSecondaryTapDown,
- GestureEdgeTapUpCallback? onEdgeSecondaryTapUp,
- EdgePaintBuilder? paintBuilder,
- GestureNodeTapDownCallback? onNodeTapDown,
- GestureNodeTapUpCallback? onNodeTapUp,
- GestureNodeLongPressStartCallback? onNodeLongPressStart,
- GestureNodeLongPressEndCallback? onNodeLongPressEnd,
- GestureNodeLongPressMoveUpdateCallback? onNodeLongPressMoveUpdate,
- GestureNodeForcePressStartCallback? onNodeForcePressStart,
- GestureNodeForcePressEndCallback? onNodeForcePressEnd,
- GestureNodeForcePressPeakCallback? onNodeForcePressPeak,
- GestureNodeForcePressUpdateCallback? onNodeForcePressUpdate,
- GestureNodeDragStartCallback? onNodePanStart,
- GestureNodeDragUpdateCallback? onNodePanUpdate,
- GestureNodeDragDownCallback? onNodePanDown,
- GestureNodeTapDownCallback? onNodeSecondaryTapDown,
- GestureNodeTapUpCallback? onNodeSecondaryTapUp,
- NodeCellBuilder? builder,
- double contactEdgesDistance = 5.0,
- MatrixOrientation orientation = MatrixOrientation.Horizontal,
- double tipAngle = math.pi * 0.1,
- double tipLength = 10.0,
- double maxScale = 3.5,
- double minScale = 0.25,
- 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);