elements property

List<Logic> elements
latefinal

Provides a list of logical elements within this signal.

For a normal Logic, this will always be a list of 1-bit signals. However, for derivatives of Logic like LogicStructure or LogicArray, each element may be any positive number of bits.

Implementation

late final List<Logic> elements = UnmodifiableListView(
    List.generate(width, (index) => this[index], growable: false));