NiceDiagram constructor
const
NiceDiagram({ - Key? key,
- List<NiceDiagramNode> nodes = const [],
- List<NiceDiagramEdge> edges = const [],
- void onNodeMove(
- String id,
- double x,
- double y
)?,
- void onNodeClick(
- String id
)?,
- void onEdgeClick(
- String id
)?,
- bool readOnly = false,
- double gridSize = 20,
- bool showGrid = true,
- bool snapToGrid = true,
- double? width,
- double? height,
})
Implementation
const NiceDiagram({
super.key,
this.nodes = const [],
this.edges = const [],
this.onNodeMove,
this.onNodeClick,
this.onEdgeClick,
this.readOnly = false,
this.gridSize = 20,
this.showGrid = true,
this.snapToGrid = true,
this.width,
this.height,
});