DiagramEditor constructor

const DiagramEditor({
  1. Key? key,
  2. required DiagramEditorContext diagramEditorContext,
})

The main widget of diagram_editor library.

In this widget all the editing of a diagram happens.

How to use it: diagram_editor.

Source code: github.

It takes DiagramEditorContext as required parameter. You should define its size in its parent widget, eg. Container.

Implementation

const DiagramEditor({
  super.key,
  required this.diagramEditorContext,
});