SchematicLayoutResult class
Result of the schematic layout computation.
Constructors
-
SchematicLayoutResult({required List<
SchematicInstanceData> instances, required List<SchematicPortData> ports, required List<SchematicEdgeData> edges, required double width, required double height, String? error, Set<String> ? exteriorHiddenPortIds, Set<String> ? interiorHiddenPortIds, Set<String> ? unconnectedPortIds, Set<String> ? interiorUnconnectedPortIds}) - Create a new SchematicLayoutResult.
- SchematicLayoutResult.empty()
-
Create an empty SchematicLayoutResult.
factory
Properties
-
edges
→ List<
SchematicEdgeData> -
List of schematic edges (wires).
final
- error → String?
-
Optional error message if layout failed.
final
-
exteriorHiddenPortIds
→ Set<
String> -
Port IDs that have a hidden parent-scope wire (wire exists but is not
currently visible). Ports in this set should show an exterior marker.
final
- hasError → bool
-
Whether the layout has an error.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Height of the layout.
final
-
instances
→ List<
SchematicInstanceData> -
List of schematic instances (nodes).
final
-
interiorHiddenPortIds
→ Set<
String> -
Port IDs that have a hidden module-internal wire (wire exists but is
not currently visible). Ports in this set should show an interior marker.
final
-
interiorUnconnectedPortIds
→ Set<
String> -
Port IDs on expanded scope-nodes whose interior has no edge
referencing them. Interior outline-only marker.
final
-
parentMap
→ Map<
String, String?> -
Cached map from child instance ID to parent instance ID.
latefinal
-
ports
→ List<
SchematicPortData> -
List of schematic ports.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
unconnectedPortIds
→ Set<
String> -
Port IDs on visible children of expanded nodes that have no
parent-scope edge referencing them. Exterior outline-only marker.
final
- width → double
-
Width of the layout.
final
Methods
-
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