ShapeTextLayerDefinition constructor

const ShapeTextLayerDefinition({
  1. required String id,
  2. required ShapeBoundsDefinition bounds,
  3. required String slotId,
  4. DiagramTextDefinition textType = const PlainTextDefinition(),
  5. bool overflow = false,
  6. bool editable = true,
  7. String initialText = '',
  8. ParagraphAlignment initialAlignment = ParagraphAlignment.start,
  9. TextRole role = TextRole.body,
  10. DiagramTextVerticalAlignment verticalAlignment = DiagramTextVerticalAlignment.center,
  11. 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,
});