clone method
- String? name,
Creates a new LogicStructure with the same structure as this
.
Implementation
LogicStructure clone({String? name}) => LogicStructure(
elements.map((e) => e is LogicStructure
? e.clone()
: Logic(name: e.name, width: e.width, naming: e.naming)),
name: name ?? this.name);