ShapeConnectionDefinition class final
Closed connection production for a registered shape.
Default sites, fixed library ports, and instance-authored ports all compile to the same PortDefinition artifact before geometry is resolved.
Constructors
-
ShapeConnectionDefinition.fixedPorts(List<
PortDefinition> fixedPorts, {bool clipToOutline = true}) -
ShapeConnectionDefinition.instancePorts({bool clipToOutline = true, List<
PortDefinition> defaultPorts = const [], List<PortSide> defaultSides = _allDiagramPortSides, PortStyle portStyle = const PortStyle()}) - ShapeConnectionDefinition.none()
-
const
- ShapeConnectionDefinition.outline()
-
const
Properties
- clipToOutline → bool
-
Clip routes and markers against the owning outline. Disable for explicit
interior ports whose connections should reach the port itself, such as
a device icon inside a larger transparent label-bearing shape.
final
- connectable → bool
-
no setter
-
defaultPorts
→ List<
PortDefinition> -
Named fallback ports for instance-editable connections. These are replaced
as a whole when the instance supplies its own ports, unlike fixedPorts.
final
-
defaultSides
→ List<
PortSide> -
final
-
fixedPorts
→ List<
PortDefinition> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → ShapeConnectionKind
-
final
- portStyle → PortStyle
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usesPorts → bool
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
portsFor(
ShapeElement shape) → List< PortDefinition> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited