ElementCreation constructor
ElementCreation({
- required String type,
- required DiagramPoint worldCenter,
- String? id,
- DiagramSize? size,
- ShapeStyle? style,
- Map<
String, Object?> values = const {}, - TextStory? textStory,
- DiagramTextSizingMode? textSizingMode,
- List<
Port> ports = const [], - DiagramShapeParentPlacement parent = const AutoDiagramShapeParent(),
- bool select = true,
- int zIndex = 0,
Implementation
ElementCreation({
required this.type,
required this.worldCenter,
this.id,
this.size,
this.style,
Map<String, Object?> values = const {},
this.textStory,
this.textSizingMode,
List<Port> ports = const [],
this.parent = const AutoDiagramShapeParent(),
this.select = true,
this.zIndex = 0,
}) : values = immutableDiagramValues(values),
ports = List.unmodifiable(ports);