DiagramEditorContext class

Constructors

DiagramEditorContext({required PolicySet policySet})
DiagramEditorContext is taken as parameter by DiagramEditor widget.
DiagramEditorContext.withSharedModel(DiagramEditorContext oldContext, {required PolicySet policySet})
Allows you to create DiagramEditorContext with shared model from another DiagramEditorContext.
DiagramEditorContext.withSharedModelAndState(DiagramEditorContext oldContext, {required PolicySet policySet})
Allows you to create DiagramEditorContext with shared model and state from another DiagramEditorContext.
DiagramEditorContext.withSharedState(DiagramEditorContext oldContext, {required PolicySet policySet})
Allows you to create DiagramEditorContext with shared state (eg. canvas position and scale) from another DiagramEditorContext.

Properties

canvasModel → CanvasModel
Canvas model containing all components and links with all the functions.
no setter
canvasState → CanvasState
Canvas state containing for example canvas position and scale.
no setter
hashCode int
The hash code for this object.
no setterinherited
policySet PolicySet
Set of policies where all the diagram customization is defined.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited