divmod static method

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

Divides a BigInt value by a specified radix and returns both the quotient and the 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);
}