sum static method

BigInt sum(
  1. Iterable<Object?> values
)

Sum of values treated as bytes, returned as BigInt.

Implementation

static BigInt sum(Iterable<Object?> values) {
  var total = BigInt.zero;
  for (final value in values) {
    total += _toBigInt(value);
  }
  return total;
}