ShapeTextLayerDefinition class final
A named text slot. Several paragraphs may flow through the same slot.
- Inheritance
-
- Object
- ShapeLayerDefinition
- ShapeTextLayerDefinition
Constructors
- 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})
-
const
Properties
- bounds → ShapeBoundsDefinition
-
finalinherited
- cursor → ShapeLayerCursor
-
no setteroverride
- editable → bool
-
False keeps people from editing this slot on the canvas; commands and
verbs still set its text.
final
- emptyPlaceholder → String?
-
Editor-only hint shown when the canonical story is empty.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
finalinherited
- initialAlignment → ParagraphAlignment
-
final
- initialText → String
-
Authored content used once when a new shape is materialized.
final
- interactionId → String?
-
no setterinherited
- overflow → bool
-
final
- role → TextRole
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slotId → String
-
final
- textType → DiagramTextDefinition
-
The text filling this slot.
final
- verticalAlignment → DiagramTextVerticalAlignment
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited