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