divmod static method
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);
}