ShapeSurface class final
A painted region with its own outline and fixed style, behind its optional child. Without an outline it paints nothing: a transparent region, such as a spacer or the area of an onInteract control.
Constructors
- ShapeSurface({ShapeOutline? outline = const ShapeOutline.rect(), ShapeStyle style = const ShapeStyle(), ShapeVisibility? visibleWhen, String? onInteract, ShapePart? child, String? id})
-
const
Properties
- child → ShapePart?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
Optional stable layer name for ports targeting this part's bounds.
final
- minimumSize → DiagramSize
-
no setteroverride
- onInteract → String?
-
The verb or host interaction a pointer on this region performs, such
as an image's
choose-image.final - outline → ShapeOutline?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → ShapeStyle
-
final
- visibleWhen → ShapeVisibility?
-
When set, the surface paints only while the condition holds.
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