ensureBigInt function

BigInt ensureBigInt(
  1. dynamic val
)

Implementation

BigInt ensureBigInt(dynamic val) {
  assertType(val, [int, BigInt, String]);
  return BigInt.tryParse(val.toString())!;
}