safeDivideBigInt static method

BigInt? safeDivideBigInt(
  1. BigInt? a,
  2. BigInt? b
)

Implementation

static BigInt? safeDivideBigInt(BigInt? a, BigInt? b) {
  if (a == null || b == null || b == BigInt.zero) return null;
  return a ~/ b;
}