ShapeWidget class final
A region a host may fill with a live widget registered for widgetKey. The portable fallback paints wherever no widget is mounted, such as in exports, and shares the shape's text.
Constructors
- ShapeWidget(String widgetKey, {required ShapePart fallback, String? id})
-
const
Properties
- fallback → ShapePart
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
Optional stable layer name for ports targeting the slot.
final
- minimumSize → DiagramSize
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- widgetKey → String
-
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