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