divmod static method

(BigInt, BigInt) divmod(
  1. BigInt value,
  2. int radix
)

Divides value by radix, returning (quotient, remainder).

Implementation

static (BigInt, BigInt) divmod(BigInt value, int radix) {
  final div = value ~/ BigInt.from(radix);
  final mod = value % BigInt.from(radix);
  return (div, mod);
}