ShapeDefinition constructor

ShapeDefinition({
  1. required String type,
  2. String? name,
  3. DiagramSize size = const DiagramSize(160, 100),
  4. DiagramSize minimumSize = const DiagramSize(24, 24),
  5. ShapeStyle style = const ShapeStyle(),
  6. ShapeShadowDefinition? shadow,
  7. ShapeOutline? outline = const ShapeOutline.rect(),
  8. ShapePart? body = ShapeParts.body,
  9. Map<String, ValueField> values = const {},
  10. Map<String, Object?> previewValues = const {},
  11. Iterable<ShapeAdjustment> adjustments = const [],
  12. ShapeConnectionDefinition connection = const ShapeConnectionDefinition.outline(),
  13. ShapeContainer? container,
  14. ShapeCollapseDefinition? collapse,
  15. ShapeBehavior behavior = const ShapeBehavior(),
  16. DiagramTextFontSizeRange fontSizeRange = const DiagramTextFontSizeRange(),
  17. ShapeTextCreation textCreation = const ShapeTextCreation(),
  18. Iterable<DiagramVerb> verbs = const [],
  19. Iterable<ShapeAffordance> affordances = const [],
  20. Iterable<DiagramProperty<ShapeElement, Object?>> properties = const [],
  21. DiagramPropertyVisibility inspector = const DiagramPropertyVisibility.all(),
})

Implementation

ShapeDefinition({
  required String type,
  String? name,
  DiagramSize size = const DiagramSize(160, 100),
  DiagramSize minimumSize = const DiagramSize(24, 24),
  ShapeStyle style = const ShapeStyle(),
  ShapeShadowDefinition? shadow,
  ShapeOutline? outline = const ShapeOutline.rect(),
  ShapePart? body = ShapeParts.body,
  Map<String, ValueField> values = const {},
  Map<String, Object?> previewValues = const {},
  Iterable<ShapeAdjustment> adjustments = const [],
  ShapeConnectionDefinition connection =
      const ShapeConnectionDefinition.outline(),
  ShapeContainer? container,
  ShapeCollapseDefinition? collapse,
  ShapeBehavior behavior = const ShapeBehavior(),
  DiagramTextFontSizeRange fontSizeRange = const DiagramTextFontSizeRange(),
  ShapeTextCreation textCreation = const ShapeTextCreation(),
  Iterable<DiagramVerb> verbs = const [],
  Iterable<ShapeAffordance> affordances = const [],
  Iterable<DiagramProperty<ShapeElement, Object?>> properties = const [],
  DiagramPropertyVisibility inspector = const DiagramPropertyVisibility.all(),
}) : this._(
       false,
       texts: const {},
       type: type,
       name: name,
       size: size,
       minimumSize: minimumSize,
       style: style,
       shadow: shadow,
       outline: outline,
       body: body,
       values: values,
       previewValues: previewValues,
       adjustments: adjustments,
       connection: connection,
       container: container,
       collapse: collapse,
       behavior: behavior,
       fontSizeRange: fontSizeRange,
       textCreation: textCreation,
       verbs: verbs,
       affordances: affordances,
       properties: properties,
       inspector: inspector,
     );