fromSignedInt static method

BigInt fromSignedInt(
  1. int value,
  2. int width, {
  3. bool signed = false,
})

Construct a Signed BigInt from an int when signed is true

Implementation

static BigInt fromSignedInt(int value, int width, {bool signed = false}) =>
    signed
        ? BigInt.from(value).toSigned(width)
        : BigInt.from(value).toUnsigned(width);