getPorts method

  1. @override
Map<String, Logic> getPorts([
  1. Iterable<DataPortGroup>? 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<DataPortGroup>? tags]) {
  final ports = super.getPorts(tags);
  return _suppressData
      ? (Map<String, Logic>.of(ports)..remove('data'))
      : ports;
}