fromString static method
Converts a binary String representation of a LogicValue into a LogicValue.
The stringRepresentation should only contain bit values (e.g. no 0b
at the start). The order of the created LogicValue will be such that
the ith character in stringRepresentation corresponds to the
length - i - 1th bit. That is, the last character of
stringRepresentation will be the 0th bit of the returned LogicValue.
var stringRepresentation = '1x0';
var lv = LogicValue.fromString(stringRepresentation);
print(lv); // This prints `3b'1x0`
Implementation
@Deprecated('Use `ofString` instead.')
static LogicValue fromString(String stringRepresentation) =>
ofString(stringRepresentation);