children method

TlvList? children(
  1. int tag
)

Implementation

TlvList? children(int tag) {
  TlvList? out;
  for (final TlvMsg item in tags) {
    if (item.tag == tag && item.value is TlvList) {
      out ??= TlvList();
      out.appendAll(item.value! as TlvList);
    }
  }
  return out;
}