SpanId.fromString constructor
SpanId.fromString(
- String id
Implementation
factory SpanId.fromString(String id) {
final _id = <int>[];
id = id.padLeft(api.SpanId.sizeBits, '0');
for (var i = 0; i < id.length; i += 2) {
_id.add(int.parse('${id[i]}${id[i + 1]}', radix: 16));
}
return SpanId(_id);
}