Xid.fromString constructor
Xid.fromString(
- String newXid
Constructs a new instance of xid from the given a string of xid throws InvalidXidException if the string supplied is not a valid xid
Implementation
Xid.fromString(String newXid) {
if (!_isValid(newXid)) {
throw InvalidXidException();
}
_xidBytes = _toBytes(newXid);
}