SchematicInstanceData class

Data for a schematic instance (visual representation of a module instance/cell).

Constructors

SchematicInstanceData({required String id, required double x, required double y, required double width, required double height, required String name, String? instanceName, String cls = '', String bodyText = '', bool isExternalPort = false, String cssClass = '', List<String> children = const [], double? portLabelWidth, bool hasChildren = false, bool isExpanded = false, bool isPartiallyExpanded = false, bool hasHiddenNonPrimitiveChildren = false, bool hasNonPrimitiveChildren = false, String? hierarchyPath, String? definitionName})
Create a new SchematicInstanceData.
SchematicInstanceData.fromJson(Map<String, dynamic> json)
Create a new SchematicInstanceData from JSON data.
factory

Properties

bodyText String
Multi-line text content displayed inside the instance box.
final
children List<String>
List of child instance IDs contained within this hierarchical instance.
final
cls String
Classification or type of this instance (e.g., 'Operator', 'Module').
final
cssClass String
CSS class(es) for styling (carries over from original schematic format).
final
definitionName String?
Module type (definition) name for this instance, e.g. "FilterChannel_T3_W16_0" for an instance named "ch0".
final
hasChildren bool
Whether this instance has expandable children (visible or hidden).
final
hashCode int
The hash code for this object.
no setterinherited
hasHiddenNonPrimitiveChildren bool
Whether this instance has hidden children that themselves have children (i.e. non-primitive / submodule children that are not yet visible).
final
hasNonPrimitiveChildren bool
Whether this instance has any non-primitive children (visible or hidden).
final
height double
Height of the instance's bounding box.
final
hierarchyPath String?
Full hierarchy path for this instance (e.g. "top/adder0").
final
id String
Unique identifier for this instance within the schematic.
final
instanceName String?
Original cell instance name from the netlist.
final
isExpanded bool
Whether this instance is currently expanded (children visible).
final
isExternalPort bool
True if this instance represents an external I/O port/pad.
final
isPartiallyExpanded bool
Whether this instance is partially expanded via port-click.
final
name String
Display name/label for this instance (e.g., module instance name).
final
portLabelWidth double?
Width allocated for port label text rendering; null if not specified.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
Width of the instance's bounding box.
final
x double
X-coordinate of the instance's top-left corner in the schematic layout.
final
y double
Y-coordinate of the instance's top-left corner in the schematic 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