ofBigInt method

SmvType ofBigInt(
  1. BigInt intValue
)

Populates a SignMagnitudeValue from a big integer intValue.

Implementation

SmvType ofBigInt(BigInt intValue) {
  final sign = LogicValue.ofBool(intValue.isNegative);
  final magnitude = LogicValue.ofBigInt(intValue.abs(), width);
  return populate(sign: sign, magnitude: magnitude);
}