ShapeSized class final
Fixed extent along the containing row/column, or a share of remaining space.
Constructors
- ShapeSized({required ShapePart child, double? extent, double flex = 1, ShapeVisibility? visibleWhen, String? textHeightSlot, String? contentHeightSlot})
Properties
- child → ShapePart
-
final
- contentHeightSlot → String?
-
Sizes this part to the required height of the content, such as a table,
in that slot, so a section is exactly as tall as its rows.
final
- extent → double?
-
final
- flex → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- minimumSize → DiagramSize
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textHeightSlot → String?
-
Measures a wrapped text slot to size this part along the main axis.
final
- visibleWhen → ShapeVisibility?
-
When set, this part shows only while the condition holds; hidden, it
takes no space in its row or column.
final
Methods
-
minimumSizeFor(
FramedElement shape, Map< String, double> textHeights) → DiagramSize -
override
-
named(
String name) → ShapePart -
Reuses this part with namespaced text slots and explicitly named surfaces.
inherited
-
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
Static Methods
-
contentHeightKey(
String slot) → String -
Where a resolver records the required height of content in
slot.