setPorts method

  1. @protected
void setPorts(
  1. List<Logic> ports,
  2. [Iterable<TagType>? tags]
)

Adds a collection of ports to this Interface, each associated with all of tags.

All names of ports are gotten from the names of the ports.

Implementation

@protected
void setPorts(List<Logic> ports, [Iterable<TagType>? tags]) {
  for (final port in ports) {
    _setPort(port, tags: tags);
  }
}