ShapeTextLayerDefinition constructor
const
ShapeTextLayerDefinition({
- required String id,
- required ShapeBoundsDefinition bounds,
- required String slotId,
- DiagramTextDefinition textType = const PlainTextDefinition(),
- bool overflow = false,
- bool editable = true,
- String initialText = '',
- ParagraphAlignment initialAlignment = ParagraphAlignment.start,
- TextRole role = TextRole.body,
- DiagramTextVerticalAlignment verticalAlignment = DiagramTextVerticalAlignment.center,
- String? emptyPlaceholder,
Implementation
const ShapeTextLayerDefinition({
required super.id,
required super.bounds,
required this.slotId,
this.textType = const PlainTextDefinition(),
this.overflow = false,
this.editable = true,
this.initialText = '',
this.initialAlignment = ParagraphAlignment.start,
this.role = TextRole.body,
this.verticalAlignment = DiagramTextVerticalAlignment.center,
this.emptyPlaceholder,
});