decode static method

StateMonitorNode? decode(
  1. Unpacker u
)

Implementation

static StateMonitorNode? decode(Unpacker u) {
  if (u.unpackListLength() != 2) {
    return null;
  }

  final values = _decodeValues(u);
  final children = _decodeChildren(u);

  return StateMonitorNode(
    values,
    children,
  );
}