portCount property

int get portCount

Number of port signals in this occurrence.

Implementation

int get portCount => signals.where((s) => s.isPort).length;