numberToBytes function

List<int> numberToBytes(
  1. dynamic number
)

Implementation

List<int> numberToBytes(dynamic number) => number is BigInt
    ? pc_utils.encodeBigInt(number)
    : hex.decode(numberToHex(number, pad: true));