ElementCreation constructor

ElementCreation({
  1. required String type,
  2. required DiagramPoint worldCenter,
  3. String? id,
  4. DiagramSize? size,
  5. ShapeStyle? style,
  6. Map<String, Object?> values = const {},
  7. TextStory? textStory,
  8. DiagramTextSizingMode? textSizingMode,
  9. List<Port> ports = const [],
  10. DiagramShapeParentPlacement parent = const AutoDiagramShapeParent(),
  11. bool select = true,
  12. 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);