toBigInt static method

BigInt toBigInt(
  1. dynamic object, {
  2. dynamic mapKey,
  3. int? listIndex,
  4. BigInt? defaultValue,
  5. ElementConverter<BigInt>? converter,
})

Converts object to BigInt, accepting BigInt, num, or numeric strings.

Throws ConversionException when parsing fails and defaultValue is null.

Implementation

static BigInt toBigInt(
  dynamic object, {
  dynamic mapKey,
  int? listIndex,
  BigInt? defaultValue,
  ElementConverter<BigInt>? converter,
}) => ConvertObjectImpl.toBigInt(
  object,
  mapKey: mapKey,
  listIndex: listIndex,
  defaultValue: defaultValue,
  converter: converter,
);