LayoutNode constructor
- required HierarchyOccurrence occurrence,
- String? id,
- HwMeta? hwMeta,
- Map<
String, dynamic> ? properties, - List<
ElkPort> ? elkPorts, - List<
LayoutNode> ? children, - List<
LayoutHyperedge> ? hyperedges, - LayoutNode? parent,
- double? x,
- double? y,
- double? width,
- double? height,
- ElkPadding? padding,
- String? hierarchyNodeId,
- Set<
String> ? partialChildIds, - Set<
String> ? partialHyperedgeIds,
Constructor for LayoutNode.
Implementation
LayoutNode({
required this.occurrence,
String? id,
HwMeta? hwMeta,
Map<String, dynamic>? properties,
List<ElkPort>? elkPorts,
List<LayoutNode>? children,
this.hiddenChildren,
this.hyperedges,
this.parent,
this.x,
this.y,
this.width,
this.height,
this.padding,
this.hierarchyNodeId,
this.partialChildIds,
this.partialHyperedgeIds,
}) : _id = id,
hwMeta = hwMeta ?? HwMeta(name: occurrence.name),
properties = properties ??
{
'org.eclipse.elk.portConstraints': 'FIXED_ORDER',
'org.eclipse.elk.layered.mergeEdges': 1,
},
elkPorts = elkPorts ?? [],
children = children ?? [];