toList method
Returns a this LogicValue as a List<LogicValue> where every element is 1 bit.
The order of the created List will be such that the ith entry of it
corresponds to the ith bit. That is, the 0th element of the list will
be the 0th bit of this LogicValue.
var lv = LogicValue.ofString('1x0');
var it = lv.toList();
print(lv); // This prints `[1'h0, 1'bx, 1'h1]`
Implementation
List<LogicValue> toList() =>
List<LogicValue>.generate(width, (index) => this[index])
.toList(growable: false);