tryBigInt method

  1. @override
BigInt? tryBigInt(
  1. K key, {
  2. BigInt? min,
  3. BigInt? max,
})
override

Returns a value at key as BigInt or null if missing.

If provided min and max are used to clamp the returned value.

null is returned if an underlying value is unavailable or cannot be converted to BigInt.

Implementation

@override
BigInt? tryBigInt(K key, {BigInt? min, BigInt? max}) {
  try {
    return getBigInt(key, min: min, max: max);
  } on Exception {
    return null;
  }
}