weight property

BigInt get weight

Implementation

BigInt get weight {
  return inputs.fold(
        0.toBI,
        (prev, input) => prev + input.weight,
      ) +
      outputs.fold(
        0.toBI,
        (prev, output) => prev + output.weight,
      );
}