ShapeDefinition constructor
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< properties = const [],ShapeElement, Object?> > - 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,
);