SpanId.fromString constructor

SpanId.fromString(
  1. String id
)

Implementation

SpanId.fromString(String id) : _id = [] {
  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));
  }
}