ElkPort class
ELK port with schematic-specific data.
Mirrors the port structure from the ELK graph format.
Constructors
Properties
-
children
→ List<
ElkPort> -
Child ports (for hierarchical/bus ports).
final
- direction → String
-
Port direction: INPUT, OUTPUT, INOUT.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ double?
-
Height in pixels (for hierarchical ports).
getter/setter pair
- hwMeta → HwMeta
-
Port metadata.
final
- id → String
-
Unique port ID (may be array-joined format like "1_clk").
final
- index → int
-
Port index within its side (for FIXED_ORDER constraint).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- side → String
-
Port side for ELK: WEST, EAST, NORTH, SOUTH.
final
- width ↔ double?
-
Width in pixels (for hierarchical ports).
getter/setter pair
- x ↔ double?
-
X coordinate in pixels.
getter/setter pair
- y ↔ double?
-
Y coordinate in pixels.
getter/setter pair
Methods
-
copyWith(
{String? id, HwMeta? hwMeta, String? direction, String? side, int? index, List< ElkPort> ? children, double? x, double? y, double? width, double? height}) → ElkPort - Create a copy with updated fields.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert to JSON map for JS serialization.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited