getPorts method

  1. @override
Map<String, Logic> getPorts([
  1. Iterable<PairDirection>? tags
])
override

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 (!_suppressPayload) {
    return ports;
  }
  return Map<String, Logic>.of(ports)..remove(data.name);
}