getPorts method
- Iterable<
PairDirection> ? tags
inherited
Returns all interface ports associated with the provided tags as a
Map from the port name to the Logic port.
Returns all ports if tags is null.
Implementation
@override
Map<String, Logic> getPorts([Iterable<PairDirection>? tags]) {
final ports = super.getPorts(tags);
if (_handledPayloads.isEmpty) {
return ports;
}
return Map<String, Logic>.of(ports)
..removeWhere((name, _) => _handledPayloads.contains(name));
}