fromString static method
- @Deprecated('Use `ofString` instead.')
- String stringRepresentation
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 i
th character in stringRepresentation
corresponds to the
length - i - 1
th 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);